import type { Editor } from '@tiptap/core'; import { Node } from '@tiptap/core'; import { type EditorState, type Transaction } from '@tiptap/pm/state'; import type { WorkDocumentContent, WorkDocumentNode } from './work-types'; interface DocumentChunkOptions { getContent: () => WorkDocumentContent | null; trustInitialIntegrityFeatures: boolean; } export interface DocumentChunkHydrationMeta { ids: readonly string[]; } export interface DocumentChunkVisibleIdsMeta { visibleIds: readonly string[]; } export declare const DOCUMENT_CHUNK_PAGINATION_META = "documentChunkPaginationGeometry"; export declare const DOCUMENT_CHUNK_VISIBLE_IDS_META = "documentChunkVisibleIds"; export declare const DOCUMENT_CHUNK_HYDRATION_META = "documentChunkLazyHydration"; export { documentChunkViewportRange } from './work-document-chunk-geometry'; export declare const DocumentChunk: Node; export declare function documentLazyChunkContentForEditor(editor: Editor, chunkId: string): readonly WorkDocumentNode[] | null; export declare function documentTransactionsOnlyHydrateChunks(transactions: readonly Transaction[]): boolean; export declare function selectedDocumentChunkId(state: Pick): string | null; export declare function documentChunkMountedIds(state: EditorState): readonly string[] | null;