import { Node as ProseMirrorNode } from 'prosemirror-model';
import { AuthoritiesAddress, AuthorityEntryAddress, AuthoritiesConfig, AuthoritiesDomain, AuthorityEntryDomain, AuthoritiesInfo, AuthorityEntryInfo, DiscoveryItem } from '../../../../../../document-api/src/index.js';
export interface ResolvedAuthority {
    node: ProseMirrorNode;
    pos: number;
    nodeId: string;
    commandNodeId?: string;
}
export interface ResolvedAuthorityEntry {
    node: ProseMirrorNode;
    pos: number;
    instruction: string;
    longCitation: string;
    shortCitation: string;
    category: number;
    blockId: string;
}
export declare function findAllAuthorities(doc: ProseMirrorNode): ResolvedAuthority[];
export declare function resolveAuthorityTarget(doc: ProseMirrorNode, target: AuthoritiesAddress): ResolvedAuthority;
export declare function resolvePostMutationAuthorityId(doc: ProseMirrorNode, sdBlockId: string): string;
export declare function extractAuthorityInfo(resolved: ResolvedAuthority): AuthoritiesInfo;
export declare function buildAuthorityDiscoveryItem(resolved: ResolvedAuthority, evaluatedRevision: string): DiscoveryItem<AuthoritiesDomain>;
export declare function findAllAuthorityEntries(doc: ProseMirrorNode): ResolvedAuthorityEntry[];
export declare function resolveAuthorityEntryTarget(doc: ProseMirrorNode, target: AuthorityEntryAddress): ResolvedAuthorityEntry;
export declare function extractAuthorityEntryInfo(doc: ProseMirrorNode, resolved: ResolvedAuthorityEntry): AuthorityEntryInfo;
export declare function buildAuthorityEntryDiscoveryItem(doc: ProseMirrorNode, resolved: ResolvedAuthorityEntry, evaluatedRevision: string): DiscoveryItem<AuthorityEntryDomain>;
export declare function parseToaInstruction(instruction: string): AuthoritiesConfig;
//# sourceMappingURL=authority-resolver.d.ts.map