/** * Short overlay enter/exit motion (Dialog / BottomSheet / Toast). * Tokens from shared theme.css; fallbacks match Spec defaults when unset. */ export declare const OVERLAY_MOTION_TRANSITION = "transition-[opacity,transform] duration-[var(--motion-duration-base,150ms)] ease-[var(--motion-easing-standard,ease)] motion-reduce:transition-none"; /** Settled (visible) panel/toast surface. */ export declare const OVERLAY_MOTION_ENTERED = "opacity-100 translate-y-0 scale-100"; /** Pre-enter / exiting panel (brief opacity + transform). */ export declare const OVERLAY_MOTION_EXITED = "opacity-0 translate-y-1 scale-[0.98]"; /** Backdrop fade only. */ export declare const OVERLAY_BACKDROP_ENTERED = "opacity-100"; export declare const OVERLAY_BACKDROP_EXITED = "opacity-0"; /** Exit delay covers --motion-duration-base (200ms in theme) + small buffer. */ export declare const OVERLAY_EXIT_MS = 220; export declare function prefersReducedMotion(): boolean; export interface OverlayPresence { /** Keep in DOM while enter/exit runs. */ readonly mounted: boolean; /** True after enter frame / false while exiting. */ readonly visible: boolean; } /** * Mount-gated presence for controlled overlays (`open`). * Open mounts synchronously; exit holds DOM for OVERLAY_EXIT_MS (skipped when reduce). */ export declare function useOverlayPresence(open: boolean): OverlayPresence; /** * One-shot enter for presentational surfaces that mount when shown * (prefer `useOverlayPresence` when exit hold is needed, e.g. Toast `open`). */ export declare function useEnterMotion(): boolean; //# sourceMappingURL=overlayMotion.d.ts.map