1 | import { Editor, Location, Point, Range } from '../../index';
|
2 | import { MoveUnit, SelectionEdge } from '../../types/types';
|
3 | export interface SelectionCollapseOptions {
|
4 | edge?: SelectionEdge;
|
5 | }
|
6 | export interface SelectionMoveOptions {
|
7 | distance?: number;
|
8 | unit?: MoveUnit;
|
9 | reverse?: boolean;
|
10 | edge?: SelectionEdge;
|
11 | }
|
12 | export interface SelectionSetPointOptions {
|
13 | edge?: SelectionEdge;
|
14 | }
|
15 | export interface SelectionTransforms {
|
16 | |
17 |
|
18 |
|
19 | collapse: (editor: Editor, options?: SelectionCollapseOptions) => void;
|
20 | |
21 |
|
22 |
|
23 | deselect: (editor: Editor) => void;
|
24 | |
25 |
|
26 |
|
27 | move: (editor: Editor, options?: SelectionMoveOptions) => void;
|
28 | |
29 |
|
30 |
|
31 | select: (editor: Editor, target: Location) => void;
|
32 | |
33 |
|
34 |
|
35 | setPoint: (editor: Editor, props: Partial<Point>, options?: SelectionSetPointOptions) => void;
|
36 | |
37 |
|
38 |
|
39 | setSelection: (editor: Editor, props: Partial<Range>) => void;
|
40 | }
|
41 | export declare const SelectionTransforms: SelectionTransforms;
|
42 |
|
\ | No newline at end of file |