@helpwave/hightide
Version:
helpwave's component and theming library
29 lines (26 loc) • 1.08 kB
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
type ASTNodeModifierType = 'none' | 'italic' | 'bold' | 'underline' | 'font-space' | 'primary' | 'secondary' | 'warn' | 'positive' | 'negative';
declare const astNodeInserterType: readonly ["helpwave", "newline"];
type ASTNodeInserterType = typeof astNodeInserterType[number];
type ASTNodeDefaultType = 'text';
type ASTNode = {
type: ASTNodeModifierType;
children: ASTNode[];
} | {
type: ASTNodeInserterType;
} | {
type: ASTNodeDefaultType;
text: string;
};
type ASTNodeInterpreterProps = {
node: ASTNode;
isRoot?: boolean;
className?: string;
};
declare const ASTNodeInterpreter: ({ node, isRoot, className, }: ASTNodeInterpreterProps) => string | react_jsx_runtime.JSX.Element;
type MarkdownInterpreterProps = {
text: string;
className?: string;
};
declare const MarkdownInterpreter: ({ text, className }: MarkdownInterpreterProps) => react_jsx_runtime.JSX.Element;
export { ASTNodeInterpreter, type ASTNodeInterpreterProps, MarkdownInterpreter, type MarkdownInterpreterProps };