import type { DOMElement } from '../dom.js'; /** * Hook for synchronized animations that pause when offscreen. * * Returns a ref to attach to the animated element and the current animation time. * All instances share the same clock, so animations stay in sync. * The clock only runs when at least one keepAlive subscriber exists. * * Pass `null` to pause — unsubscribes from the clock so no ticks fire. * Time freezes at the last value and resumes from the current clock time * when a number is passed again. * * @param intervalMs - How often to update, or null to pause * @returns [ref, time] - Ref to attach to element, elapsed time in ms */ export declare function useAnimationFrame(intervalMs?: number | null): [ref: (element: DOMElement | null) => void, time: number]; //# sourceMappingURL=use-animation-frame.d.ts.map