import { NestingPolicy, SDFragment } from '../../../../../../document-api/src/index.js';
import { Node as ProseMirrorNode } from 'prosemirror-model';
/**
 * Enforces nesting policy. Throws if fragment contains a table and the
 * insertion target is inside a table cell, unless explicitly allowed.
 *
 * @param fragment - The SDFragment being inserted
 * @param doc - Current ProseMirror document
 * @param insertPos - Absolute ProseMirror insertion position
 * @param policy - Nesting policy (defaults to { tables: 'forbid' })
 */
export declare function enforceNestingPolicy(fragment: SDFragment, doc: ProseMirrorNode, insertPos: number, policy?: NestingPolicy): void;
//# sourceMappingURL=nesting-guard.d.ts.map