import { Node as ProseMirrorNode } from 'prosemirror-model'; import { ContentControlTarget } from '@superdoc/document-api'; export declare const SDT_NODE_NAMES: readonly ["structuredContent", "structuredContentBlock"]; export declare const SDT_BLOCK_NAME = "structuredContentBlock"; export declare const SDT_INLINE_NAME = "structuredContent"; export interface ResolvedSdt { node: ProseMirrorNode; pos: number; kind: 'block' | 'inline'; } /** Check whether a ProseMirror node is an SDT (structuredContent or structuredContentBlock). */ export declare function isSdtNode(node: ProseMirrorNode): boolean; /** Find all SDT nodes in the document in document order. */ export declare function findAllSdtNodes(doc: ProseMirrorNode): ResolvedSdt[]; /** * Resolve exactly one SDT node by its target. Throws TARGET_NOT_FOUND if * missing or AMBIGUOUS_TARGET if multiple nodes share the same id. */ export declare function resolveSdtByTarget(doc: ProseMirrorNode, target: ContentControlTarget): ResolvedSdt; //# sourceMappingURL=target-resolution.d.ts.map