import type { Anchor, AnchorKind } from "../model/types"; export declare function kindOf(el: Element): AnchorKind; /** Elements of one kind under `base`, in page order. A box can be anything that isn't one of the other kinds. */ export declare function candidates(base: Element, kind: AnchorKind): Element[]; /** What the thing is called: its label, a picture's description or file name, a link's address. "" when nothing. */ export declare function nameOf(el: Element): string; /** The headings `node` sits under, outermost first, from the page's outline before it. */ export declare function headsOf(node: Node, root: Element): string[]; /** Where `el` is down `root`, 0 to 1; undefined when the page has no layout to measure. */ export declare function yOf(el: Element, root: Element): number | undefined; /** The clues kept with a comment on `el`, so a look-alike can be found when the page changes. */ export declare function cluesOf(el: Element, root: Element): Pick; /** How alike two texts are, 0 to 1 (Dice's coefficient on trigrams). */ export declare function similarity(a: string, b: string): number; /** What a comment was on, in words: "it was a box under Pricing › Business". "" when it has no clues. */ export declare const wasOn: (a: Anchor) => string;