/** * Drives `fn(timestamp)` once per animation frame. Mirrors the shape * of {@link useTimeout}: returns `{start, stop}`, does NOT start * automatically, auto-stops on scope dispose. `fn` may call `stop()` * (or `start()`) to break out of or restart the loop synchronously. * * @param {(timestamp: DOMHighResTimeStamp) => void} fn * @returns {{ start: () => any; stop: () => any }} * @url https://pota.quack.uy/use/animate/useAnimationFrame */ export function useAnimationFrame(fn: (timestamp: DOMHighResTimeStamp) => void): { start: () => any; stop: () => any; }; export function animateClassTo(element: Element, oldClass: string, newClass: string): Promise; export function animatePartTo(element: Element, oldPart: string, newPart: string): Promise; export function stopAnimations(element: Element): Animation[]; export function documentKeyframes(): any; //# sourceMappingURL=animate.d.ts.map