import type { WorkDocumentShapeType, WorkDocumentTextBoxProperties } from './work-document-text-box'; interface DocxTextBoxIdentityPatch { marker: string; preferredId: number | null; shapeType: WorkDocumentShapeType; } export interface DocxTextBoxIdentityRegistration { marker: string; docPropertiesId: number | null; } /** * Allocates a marker for each text box and lets the package patcher assign a * document-wide `wp:docPr/@id` after all image and shape IDs are known. * * The `docx` package creates a fresh ID generator per drawing instance, so * relying on its default would give every WPS shape the same ID. Delaying the * assignment also lets us preserve an imported ID when it is still available, * while deterministically repairing collisions with images or other shapes. */ export declare class DocxTextBoxIdentityPatchCollector { readonly patches: DocxTextBoxIdentityPatch[]; private nextMarker; register(properties: WorkDocumentTextBoxProperties): DocxTextBoxIdentityRegistration; } export declare function patchDocxTextBoxIdentities(buffer: ArrayBuffer, patches: readonly DocxTextBoxIdentityPatch[]): Promise; export {};