import { DrawerMotionState } from '../../types/DrawerMotionState'; /** * Animates the drawer panel to a target endpoint using the Web Animations API. * * WAA is used instead of CSS transitions because it does not rely on the CSS * `transition` property, so a host stylesheet shipping `* { transition: none * !important }` cannot silently break it, and it exposes a `finished` promise * instead of brittle `transitionend` + timeout bookkeeping. * * When `from` is null the current computed value is used as the start (so a * close can animate from wherever a drag left the panel). Returns null when the * API is unavailable (e.g. jsdom/SSR) so callers fall back to an instant set. * @param {object} params - Function params. * @param {HTMLElement} params.element - Drawer panel element. * @param {DrawerMotionState | null} params.from - Explicit start endpoint, or null to use the current value. * @param {DrawerMotionState} params.to - Target endpoint. * @param {number} params.duration - Duration in milliseconds (0 = instant). * @returns {Animation | null} The running animation, or null when WAA is unavailable. */ export declare const animateDrawerTo: ({ element, from, to, duration, }: { element: HTMLElement; from: DrawerMotionState | null; to: DrawerMotionState; duration: number; }) => Animation | null; export default animateDrawerTo; //# sourceMappingURL=animateDrawerTo.d.ts.map