import type { ContentBlock } from './types.js'; /** A `\label{…}` in TeX: the identifier a `\eqref`, `\ref` or `:ref` * names (#530), trimmed; `tex.slice(start, end)` is the whole command. */ export interface TexLabel { label: string; start: number; end: number; } /** Every `\label{…}` of a TeX source, in order, as * `/\\label\{\s*([^{}]*?)\s*\}/g` finds them: a braced group holding no * brace. A scan in one pass (the expression backtracks over spaces). */ export declare function texLabelMatches(tex: string): TexLabel[]; /** The labels of a TeX source, in order. */ export declare function texLabels(tex: string): string[]; /** * A `\label{eq:x}` in a display formula (#530) is an anchor on the formula: * where a reference to it jumps and whose page it prints. The anchor sits * on the formula's first source character; the mark's range is the * `\label{…}` itself, so a duplicate is reported where it is written. */ export declare function attachEquationAnchors(result: T, markdown: string): T; //# sourceMappingURL=equationLabels.d.ts.map