import type { GsapHandle } from '../../core/gsap-detect'; import type { ModalEntry } from './state'; export interface AnimationController { applyInitialClosed: (entries: ModalEntry[], backdrop: HTMLElement | null) => void; open: (entry: ModalEntry, backdrop: HTMLElement | null, cardDuration: number) => void; /** * Reverse the card + inner aa-animate timelines (via the modal-inactive * event, which paired-reverses each subscriber at REVERSE_TIME_SCALE) and * fade the backdrop out. Calls onComplete after the longest of the two has * finished so the caller can hide the group / unlock scroll. */ close: (entry: ModalEntry, backdrop: HTMLElement | null, cardDuration: number, onComplete?: () => void) => void; cleanup: (entries: ModalEntry[], backdrop: HTMLElement | null) => void; } export declare function createAnimationController(gsapHandle: GsapHandle): AnimationController; //# sourceMappingURL=animation.d.ts.map