import { Node as ProseMirrorNode } from 'prosemirror-model';
import { Editor } from '../../core/Editor.js';
import { FootnoteAddress, FootnoteDomain, FootnoteInfo, DiscoveryItem } from '../../../../../../document-api/src/index.js';
export interface ResolvedFootnote {
    node: ProseMirrorNode;
    pos: number;
    noteId: string;
    type: 'footnote' | 'endnote';
}
/**
 * Finds all footnote/endnote reference nodes in document order.
 */
export declare function findAllFootnotes(doc: ProseMirrorNode, typeFilter?: 'footnote' | 'endnote'): ResolvedFootnote[];
/**
 * Resolves a FootnoteAddress to its reference node.
 * @throws DocumentApiAdapterError with code TARGET_NOT_FOUND if not found.
 */
export declare function resolveFootnoteTarget(doc: ProseMirrorNode, target: FootnoteAddress): ResolvedFootnote;
export declare function extractFootnoteInfo(editor: Editor, resolved: ResolvedFootnote): FootnoteInfo;
export declare function buildFootnoteDiscoveryItem(editor: Editor, resolved: ResolvedFootnote, evaluatedRevision: string): DiscoveryItem<FootnoteDomain>;
//# sourceMappingURL=footnote-resolver.d.ts.map