json-joy
Version:
Collection of libraries for building collaborative editing apps.
21 lines (20 loc) • 763 B
TypeScript
import { type nodes } from '../../json-crdt-patch';
import type { SliceSchema } from './slice/types';
export declare enum Chars {
BlockSplitSentinel = "\n"
}
export declare enum Position {
/**
* Specifies the absolute start of the text, i.e. the position before the
* first character. In model space it is defined as string ID and "after"
* anchor.
*/
AbsStart = -1,
/**
* Specifies the absolute end of the text, i.e. the position after the last
* character. In model space it is defined as string ID and "before" anchor.
*/
AbsEnd = 9007199254740991
}
export declare const MNEMONIC: string;
export declare const SCHEMA: (text: string) => nodes.vec<[str: nodes.str<string>, slices: nodes.arr<SliceSchema>]>;