import { Block } from './Block'; import { Range } from '../rga/Range'; import type { Stateful } from '../types'; import type { Printable } from 'tree-dump/lib/types'; import type { Peritext } from '../Peritext'; import type { Point } from '../rga/Point'; import type { PeritextMlElement } from './types'; /** * A *fragment* represents a structural slice of a rich-text document. A * fragment can be bound to a specific range of text contents, however it * always constructs a tree of {@link Block}s, which represent the nested * structure of the text contents. */ export declare class Fragment extends Range implements Printable, Stateful { readonly txt: Peritext; readonly root: Block; constructor(txt: Peritext, start: Point, end: Point); toJson(): PeritextMlElement; toString(tab?: string): string; hash: number; refresh(): number; private insertBlock; protected build(): void; }