@hashbrownai/core
Version:
Runtime helpers for Hashbrown AI
28 lines • 844 B
TypeScript
export declare const INCOMPLETE_LINK_HREF = "hashbrown:incomplete-link";
export type InlineMarksExpectation = {
strong?: boolean;
em?: boolean;
code?: boolean;
linkHref?: string | undefined;
};
export type ExpectedFragment = {
text: string;
state: 'final' | 'provisional';
marks?: InlineMarksExpectation;
};
export type InlineMarkdownCase = {
name: string;
input: string;
expectedText: string;
expectedFragments: ExpectedFragment[];
};
type NormalizedInlineMarksExpectation = {
strong: boolean;
em: boolean;
code: boolean;
linkHref?: string;
};
export declare const withDefaultMarks: (marks?: InlineMarksExpectation) => NormalizedInlineMarksExpectation;
export declare const INLINE_MARKDOWN_CASES: InlineMarkdownCase[];
export {};
//# sourceMappingURL=magic-text-inline-cases.d.ts.map