import type { Editor } from '@tiptap/core'; import type { Node as ProseMirrorNode } from '@tiptap/pm/model'; import type { OfficeKernelTextLayoutParagraph, OfficeKernelTextLayoutRun } from '../../kernel/office-kernel-protocol'; import type { WorkDocumentLayoutFont } from './work-document-fonts'; import type { DocumentPaginationSnapshot, DocumentTextLayoutCollection } from './work-document-pagination-types'; export declare const DOCUMENT_TEXT_LAYOUT_BATCH_SIZE = 1024; export declare function documentTextLayoutBatches(paragraphs: readonly OfficeKernelTextLayoutParagraph[]): OfficeKernelTextLayoutParagraph[][]; export declare function collectDocumentTextLayoutParagraphs(editor: Editor, fonts: readonly WorkDocumentLayoutFont[], loadedFontIds: ReadonlySet, previous?: DocumentPaginationSnapshot | null, dirtyFrom?: number): DocumentTextLayoutCollection; export declare function isDocumentLineFragmentNode(node: ProseMirrorNode): boolean; export declare function documentTextLayoutContent(node: ProseMirrorNode): string | null; interface DocumentTextParagraphStyle { direction: 'ltr' | 'rtl'; whiteSpace: 'breakSpaces' | 'normal'; } export declare function collectDocumentTextLayoutRuns(element: HTMLElement, expectedText: string, fonts: readonly WorkDocumentLayoutFont[], loadedFontIds: ReadonlySet, paragraphStyle?: DocumentTextParagraphStyle | null): OfficeKernelTextLayoutRun[] | null; export {};