1 | import { Operation, Path } from '..';
|
2 | /**
|
3 | * `PathRef` objects keep a specific path in a document synced over time as new
|
4 | * operations are applied to the editor. You can access their `current` property
|
5 | * at any time for the up-to-date path value.
|
6 | */
|
7 | export interface PathRef {
|
8 | current: Path | null;
|
9 | affinity: 'forward' | 'backward' | null;
|
10 | unref(): Path | null;
|
11 | }
|
12 | export interface PathRefInterface {
|
13 | /**
|
14 | * Transform the path ref's current value by an operation.
|
15 | */
|
16 | transform: (ref: PathRef, op: Operation) => void;
|
17 | }
|
18 | export declare const PathRef: PathRefInterface;
|
19 | //# sourceMappingURL=path-ref.d.ts.map |
\ | No newline at end of file |