import type { Anchor } from "../model/types"; export type AnchorState = "attached" | "moved" | "orphaned"; export interface Resolved { state: AnchorState; element: Element | null; range: Range | null; /** Found by looking alike rather than by its words or its place: someone should say whether it's right. */ alike?: boolean; } export interface ResolveOptions { /** Try approximate matching when exact text isn't found. Default true. */ fuzzy?: boolean; } export declare function findMarked(root: Element, id: string): Element | null; export declare function resolveAnchor(anchor: Anchor, root: Element, options?: ResolveOptions): Resolved;