/** Owns one non-interactive temporary overlay in a story document. */
export declare function createRuntimeHighlight(document: Document, window: Window): {
    /** Display a bounded selector highlight inside the already-authorized root. */
    show(root: Element, selector: string, duration: number, requestId: string, owner: unknown, kind?: 'highlight' | 'highlightLease'): `${string}-${number}-${string}` | `${string}-${string}-${string}-${string}-${string}`;
    /** An internal framework provider supplies the element, never the caller. */
    showElement(root: Element, target: Element, duration: number, requestId: string, owner: unknown, kind?: 'highlight' | 'highlightLease', isActive?: () => boolean): `${string}-${number}-${string}` | `${string}-${string}-${string}-${string}-${string}`;
    /** Cancellation cannot remove a later request's overlay. */
    cancel(requestId: string, owner: unknown): void;
    /** A stale lease cannot remove a newer overlay or another connection's work. */
    clear(leaseId: string, owner: unknown): boolean;
    /** Source permission withdrawal retires only the affected overlay kind. */
    revoke(allowed: {
        highlight?: boolean;
        highlightLease?: boolean;
        componentHighlight?: boolean;
    }): void;
    /** Document and actor retirement remove only their currently owned overlay. */
    close(): void;
};
//# sourceMappingURL=highlight.d.ts.map