/**
 * AnchorResolver — Centralized DOM observation for anchor element resolution.
 *
 * Provides a single MutationObserver that multiple callers share to wait for
 * DOM elements to appear. Replaces scattered observation mechanisms.
 */
export interface AnchorResolverOptions {
    root?: HTMLElement;
    defaultTimeoutMs?: number;
}
export interface AnchorResolver {
    resolve(selector: string): HTMLElement | null;
    waitFor(selector: string, timeoutMs?: number): Promise<HTMLElement>;
    /** One-shot: fires callback once when element appears, then auto-removes the watcher. */
    onAppear(selector: string, cb: (el: HTMLElement) => void): () => void;
    pendingCount(): number;
    destroy(): void;
}
export declare function createAnchorResolver(opts?: AnchorResolverOptions): AnchorResolver;
