import type { GenericParent } from 'myst-common';
import type { CitationRenderer } from 'citation-js-utils';
type CountAndLookup = {
    count: number;
    lookup: Record<string, string>;
};
export type IdInventory = {
    section?: CountAndLookup;
    expression?: CountAndLookup;
    equation?: CountAndLookup;
    figure?: CountAndLookup;
    table?: CountAndLookup;
    code?: CountAndLookup;
    quote?: CountAndLookup;
    cite?: CountAndLookup;
    footnote?: CountAndLookup;
    proof?: CountAndLookup;
};
/**
 * Traverse mdast tree, find reference targets, and replace them with simple identifiers
 *
 * This builds a map of old identifiers to new identifiers, subsequently used
 * for updating references. Modified nodes include sections, containers,
 * footnotes, inlineExpressions, math, and citations.
 */
export declare function referenceTargetTransform(mdast: GenericParent, inventory: IdInventory, citations?: CitationRenderer): void;
/**
 * Use reference lookup from referenceTargetTransform to update cross references
 */
export declare function referenceResolutionTransform(mdast: GenericParent, inventory: IdInventory): void;
export {};
//# sourceMappingURL=references.d.ts.map