usfm-editor
Version:
A WYSIWYG editor component for USFM
33 lines (32 loc) • 1.2 kB
TypeScript
import { Text } from "slate";
export declare const MyText: {
marks: typeof marks;
equals: (text: import("slate").BaseText & {
[key: string]: string | boolean;
}, another: import("slate").BaseText & {
[key: string]: string | boolean;
}, options?: {
loose?: boolean | undefined;
} | undefined) => boolean;
isText: (value: any) => value is import("slate").BaseText & {
[key: string]: string | boolean;
};
isTextList: (value: any) => value is (import("slate").BaseText & {
[key: string]: string | boolean;
})[];
isTextProps: (props: any) => props is Partial<import("slate").BaseText & {
[key: string]: string | boolean;
}>;
matches: (text: import("slate").BaseText & {
[key: string]: string | boolean;
}, props: Partial<import("slate").BaseText & {
[key: string]: string | boolean;
}>) => boolean;
decorations: (node: import("slate").BaseText & {
[key: string]: string | boolean;
}, decorations: import("slate").BaseRange[]) => (import("slate").BaseText & {
[key: string]: string | boolean;
})[];
};
declare function marks(text: Text): string[];
export {};