Files
assistant-ui--assistant-ui/api-surface/assistant-ui__react-ink-markdown.ts
wehub-resource-sync e30e75b5d4
Changesets / Create Version PR (push) Waiting to run
Code Quality / Oxlint + Oxfmt (push) Waiting to run
Code Quality / Template Sync (push) Waiting to run
Code Quality / Build Changed Packages (push) Waiting to run
Code Quality / Test Changed Packages (push) Waiting to run
Deploy Expo Example / Deploy Production (push) Waiting to run
Deploy Ink Example / Deploy Production (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.12) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.12) (push) Waiting to run
Deploy Shadcn Registry / Deploy Production (push) Waiting to run
Template Metrics / LOC + Bundle Size (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:40:13 +08:00

46 lines
1.4 KiB
TypeScript

import { RenderOptions, Theme, Theme as Theme$1, ThemeName, ThemeName as ThemeName$1 } from "markdansi";
declare const MarkdownText: {
(_param0: MarkdownTextProps): import("react").JSX.Element;
displayName: string;
};
declare const MarkdownTextPrimitive: {
(_param1: MarkdownTextPrimitiveProps): import("react").JSX.Element;
displayName: string;
};
type MarkdownTextPrimitiveProps = Omit<MarkdownTextProps, "text"> & {
preprocess?: ((text: string) => string) | undefined;
};
type MarkdownTextProps = {
text: string;
highlighter?: (code: string, lang?: string) => string;
theme?: ThemeName | Theme;
width?: number;
wrap?: boolean;
codeBox?: boolean;
codeGutter?: boolean;
codeWrap?: boolean;
hyperlinks?: boolean;
tableBorder?: "ascii" | "none" | "unicode";
tablePadding?: number;
tableDense?: boolean;
quotePrefix?: string;
listIndent?: number;
};
type UseShikiHighlighterOptions = {
theme?: string;
langs?: string[];
};
declare namespace entry_root_exports {
export { MarkdownText, MarkdownTextPrimitive, MarkdownTextPrimitiveProps, MarkdownTextProps, RenderOptions, Theme$1 as Theme, ThemeName$1 as ThemeName, UseShikiHighlighterOptions, useShikiHighlighter };
}
declare function useShikiHighlighter(options?: UseShikiHighlighterOptions): ((code: string, lang?: string) => string) | undefined;
export { entry_root_exports as entry_root };