import { DeepMaybeObservable, ReadonlyObservable } from '@usels/core'; import { ConfigurableWindow } from '../../shared/configurable.mjs'; import '@legendapp/state'; type UsePageLeaveOptions = ConfigurableWindow; /** * Framework-agnostic reactive page-leave detector. * * Returns an `Observable` that is `true` while the mouse cursor is * outside the page (document) and `false` otherwise. Listens to `mouseout` on * the window plus `mouseleave` / `mouseenter` on the document. The target * window is resolved via `resolveWindowSource`, so `options.window` (plain, * Ref$, or Observable) is honored reactively. */ declare function createPageLeave(options?: DeepMaybeObservable): ReadonlyObservable; export { type UsePageLeaveOptions, createPageLeave };