askeroo
Version:
A modern CLI prompt library with flow control, history navigation, and conditional prompts
17 lines • 600 B
TypeScript
import { ReactElement } from "react";
export type MarkdownString = {
__isMarkdown: true;
content: string;
theme?: {
heading?: string;
text?: string;
code?: string;
link?: string;
strong?: string;
emphasis?: string;
};
};
export declare function md(strings: TemplateStringsArray, ...values: any[]): MarkdownString;
export declare function isMarkdownString(value: any): value is MarkdownString;
export declare function parseMarkdown(content: string, theme?: MarkdownString["theme"]): ReactElement[];
//# sourceMappingURL=markdown.d.ts.map