/** * THE TWO DISMISSALS NO OVERLAY LIBRARY PERFORMS, stated once. * * Both are about a press or a movement the overlay's own outside-press listener * cannot observe, and both are the ANCHORED presentation's alone: a modal sheet * covers the page, so nothing under it scrolls and nothing under it takes a * press. */ /** * THE ONE PRESS AN OUTSIDE-PRESS LISTENER CANNOT SEE: one that lands inside a * cross-origin iframe. Those events are dispatched in the frame's own document * and never cross into this one, so an overlay anchored over an embedded app * stays open while the reader clicks underneath it. Focus is the signal that * survives the boundary — and checking `activeElement` is what keeps this from * over-firing, since a window blur alone also means "switched tab". */ export declare function useIframeDismiss(active: boolean, dismiss: () => void): void; /** * A SCROLL THAT MOVES THE ANCHOR IS THE READER MOVING ON, so the panel is * dismissed rather than chased — as a native `