import { Node } from '@tiptap/core'; /** * Bounded body-level Word content controls. * * Admits a body-level `w:sdt` whose content is one or more plain paragraphs of * runs and up to two nesting levels of child `text` / `richText` block * controls. Deeper nesting (depth ≥ 3), tables, form controls, repeating * sections, and live custom-XML sync remain fail-closed. Passive data-binding * metadata may round-trip when present. */ export type WorkDocumentBlockContentControlType = 'richText' | 'text'; export type WorkDocumentBlockContentControlLock = 'contentLocked' | 'sdtContentLocked' | 'sdtLocked' | 'unlocked'; export type WorkDocumentBlockContentControlAppearance = 'boundingBox' | 'hidden' | 'tags'; export interface WorkDocumentBlockContentControlProperties { id: string; nativeId: number | null; type: WorkDocumentBlockContentControlType; alias: string; tag: string; lock: WorkDocumentBlockContentControlLock; appearance: WorkDocumentBlockContentControlAppearance; color: string | null; bindingStoreItemId: string; bindingXPath: string; bindingPrefixMappings: string; } export declare const DOCUMENT_BLOCK_CONTENT_CONTROL_DEFAULTS: WorkDocumentBlockContentControlProperties; /** Maximum nesting depth of child block controls inside a body-level control. */ export declare const DOCUMENT_BLOCK_CONTENT_CONTROL_MAX_NEST_DEPTH = 2; declare module '@tiptap/core' { interface Commands { documentBlockContentControl: { insertDocumentBlockContentControl: (text?: string, options?: Partial) => ReturnType; setDocumentBlockContentControlProperties: (value: Partial) => ReturnType; deleteDocumentBlockContentControl: () => ReturnType; }; } } export declare const DocumentBlockContentControl: Node; export declare function normalizeBlockContentControlProperties(value: Partial | null | undefined): WorkDocumentBlockContentControlProperties; export declare function blockContentControlDomAttributes(properties: WorkDocumentBlockContentControlProperties): Record; export declare function blockContentControlPropertiesFromElement(element: Element): WorkDocumentBlockContentControlProperties;