1 | import { ExtendedType, Operation, Path } from '..';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export interface BasePoint {
|
9 | path: Path;
|
10 | offset: number;
|
11 | }
|
12 | export declare type Point = ExtendedType<'Point', BasePoint>;
|
13 | export interface PointInterface {
|
14 | compare: (point: Point, another: Point) => -1 | 0 | 1;
|
15 | isAfter: (point: Point, another: Point) => boolean;
|
16 | isBefore: (point: Point, another: Point) => boolean;
|
17 | equals: (point: Point, another: Point) => boolean;
|
18 | isPoint: (value: any) => value is Point;
|
19 | transform: (point: Point, op: Operation, options?: {
|
20 | affinity?: 'forward' | 'backward' | null;
|
21 | }) => Point | null;
|
22 | }
|
23 | export declare const Point: PointInterface;
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | export declare type PointEntry = [Point, 'anchor' | 'focus'];
|
29 |
|
\ | No newline at end of file |