import * as React from 'react'; import type { LayerEntry } from '../../contracts/preferences.js'; import type { LayerStack } from './LayerStack.js'; export declare const LayerStackContext: React.Context; export interface UseLayerInput extends LayerEntry { /** Return `false` to let the native Escape event through (see LayerItem). */ onEscape: () => void | boolean; restoreFocusTo?: Element | false | null; lockScroll?: boolean; /** Inert below this layer without a scroll lock (replaces body inline-style writes for "disable outside pointer events"). */ pointerLockOutside?: boolean; /** Outside pointerdown while this is the topmost open layer. */ onPointerDownOutside?: (event: Event) => void; /** Outside focusin while this is the topmost open layer. */ onFocusOutside?: (event: FocusEvent) => void; } export declare function useLayer(entry: UseLayerInput): { id: string; depth: number; isTop: boolean; }; //# sourceMappingURL=useLayer.d.ts.map