import { Node as ProseMirrorNode } from 'prosemirror-model';
import { IndexAddress, IndexEntryAddress, IndexConfig, IndexDomain, IndexEntryDomain, IndexInfo, IndexEntryInfo, DiscoveryItem } from '../../../../../../document-api/src/index.js';
export interface ResolvedIndex {
    node: ProseMirrorNode;
    pos: number;
    nodeId: string;
    commandNodeId?: string;
}
export interface ResolvedIndexEntry {
    node: ProseMirrorNode;
    pos: number;
    instruction: string;
    blockId: string;
}
export declare function findAllIndexNodes(doc: ProseMirrorNode): ResolvedIndex[];
export declare function resolveIndexTarget(doc: ProseMirrorNode, target: IndexAddress): ResolvedIndex;
export declare function resolvePostMutationIndexId(doc: ProseMirrorNode, sdBlockId: string): string;
export declare function extractIndexInfo(resolved: ResolvedIndex): IndexInfo;
export declare function buildIndexDiscoveryItem(resolved: ResolvedIndex, evaluatedRevision: string): DiscoveryItem<IndexDomain>;
export declare function findAllIndexEntries(doc: ProseMirrorNode): ResolvedIndexEntry[];
export declare function resolveIndexEntryTarget(doc: ProseMirrorNode, target: IndexEntryAddress): ResolvedIndexEntry;
export declare function extractIndexEntryInfo(doc: ProseMirrorNode, resolved: ResolvedIndexEntry): IndexEntryInfo;
export declare function buildIndexEntryDiscoveryItem(doc: ProseMirrorNode, resolved: ResolvedIndexEntry, evaluatedRevision: string): DiscoveryItem<IndexEntryDomain>;
export declare function parseIndexInstruction(instruction: string): IndexConfig;
//# sourceMappingURL=index-resolver.d.ts.map