/**
 * AnchorWatcher — Detects when an anchor element is removed from the DOM.
 *
 * Uses MutationObserver on document.body to watch for subtree changes
 * that disconnect the watched element. Calls onDetach exactly once
 * when the anchor's isConnected becomes false.
 */
export interface AnchorWatcherOptions {
    /** Called once when the anchor element is removed from the DOM. */
    onDetach: () => void;
}
export declare class AnchorWatcher {
    private opts;
    private anchor;
    private observer;
    private detached;
    constructor(anchor: HTMLElement, opts: AnchorWatcherOptions);
    /** Returns the current connection status of the anchor. */
    isConnected(): boolean;
    /** Stop watching. Safe to call multiple times. */
    destroy(): void;
}
