1 | import { Element, Descendant, Range, Text, Editor } from 'slate';
|
2 | import { AnchorToken, FocusToken, Token } from './tokens';
|
3 |
|
4 |
|
5 |
|
6 | export declare function createAnchor(tagName: string, attributes: {
|
7 | [key: string]: any;
|
8 | }, children: any[]): AnchorToken;
|
9 |
|
10 |
|
11 |
|
12 | export declare function createCursor(tagName: string, attributes: {
|
13 | [key: string]: any;
|
14 | }, children: any[]): Token[];
|
15 |
|
16 |
|
17 |
|
18 | export declare function createElement(tagName: string, attributes: {
|
19 | [key: string]: any;
|
20 | }, children: any[]): Element;
|
21 |
|
22 |
|
23 |
|
24 | export declare function createFocus(tagName: string, attributes: {
|
25 | [key: string]: any;
|
26 | }, children: any[]): FocusToken;
|
27 |
|
28 |
|
29 |
|
30 | export declare function createFragment(tagName: string, attributes: {
|
31 | [key: string]: any;
|
32 | }, children: any[]): Descendant[];
|
33 |
|
34 |
|
35 |
|
36 | export declare function createSelection(tagName: string, attributes: {
|
37 | [key: string]: any;
|
38 | }, children: any[]): Range;
|
39 |
|
40 |
|
41 |
|
42 | export declare function createText(tagName: string, attributes: {
|
43 | [key: string]: any;
|
44 | }, children: any[]): Text;
|
45 |
|
46 |
|
47 |
|
48 | export declare const createEditor: (makeEditor: () => Editor) => (tagName: string, attributes: {
|
49 | [key: string]: any;
|
50 | }, children: any[]) => Editor;
|
51 |
|
\ | No newline at end of file |