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 | transform: (ref: PathRef, op: Operation) => void;
|
14 | }
|
15 | export declare const PathRef: PathRefInterface;
|
16 | //# sourceMappingURL=path-ref.d.ts.map |
\ | No newline at end of file |