1 | import { Editor, Location, Node } from '../../index';
|
2 | import { TextUnit } from '../../types/types';
|
3 | export interface TextDeleteOptions {
|
4 | at?: Location;
|
5 | distance?: number;
|
6 | unit?: TextUnit;
|
7 | reverse?: boolean;
|
8 | hanging?: boolean;
|
9 | voids?: boolean;
|
10 | }
|
11 | export interface TextInsertFragmentOptions {
|
12 | at?: Location;
|
13 | hanging?: boolean;
|
14 | voids?: boolean;
|
15 | batchDirty?: boolean;
|
16 | }
|
17 | export interface TextInsertTextOptions {
|
18 | at?: Location;
|
19 | voids?: boolean;
|
20 | }
|
21 | export interface TextTransforms {
|
22 | |
23 |
|
24 |
|
25 | delete: (editor: Editor, options?: TextDeleteOptions) => void;
|
26 | |
27 |
|
28 |
|
29 |
|
30 | insertFragment: (editor: Editor, fragment: Node[], options?: TextInsertFragmentOptions) => void;
|
31 | |
32 |
|
33 |
|
34 |
|
35 | insertText: (editor: Editor, text: string, options?: TextInsertTextOptions) => void;
|
36 | }
|
37 | export declare const TextTransforms: TextTransforms;
|
38 |
|
\ | No newline at end of file |