@visactor/vgrammar-core
Version:
VGrammar is a visual grammar library
16 lines (15 loc) • 498 B
TypeScript
import type { IRichText, IRichTextCharacter } from '@visactor/vrender-core';
export declare function richXul(strings: TemplateStringsArray, ...insertVars: (string | number)[]): {
type: string;
text: IRichTextCharacter[];
};
export declare function richJsx(richText: IRichText | {
attribute: IRichTextCharacter;
type: string;
}[] | IRichTextCharacter[]): {
type: string;
text: (IRichTextCharacter | {
attribute: IRichTextCharacter;
type: string;
})[];
};