import { Node as ProseMirrorNode } from 'prosemirror-model';
export type TextOffsetRange = {
    start: number;
    end: number;
};
export type ResolvedTextRange = {
    from: number;
    to: number;
};
/**
 * Resolves block-relative text offsets into absolute ProseMirror positions.
 *
 * Uses the same flattened text model as search:
 * - Text contributes its length.
 * - Leaf atoms contribute 1.
 * - Inline wrappers contribute only their inner text.
 * - Block separators contribute 1 between block children.
 */
export declare function resolveTextRangeInBlock(blockNode: ProseMirrorNode, blockPos: number, range: TextOffsetRange): ResolvedTextRange | null;
//# sourceMappingURL=text-offset-resolver.d.ts.map