import type { OneOrMany } from './types.ts'; interface AnimateOptions extends KeyframeAnimationOptions { } /** * Animate one or more elements using the Web Animations API. * Automatically respects `prefers-reduced-motion`. * * @example * animate(el, [{ opacity: 0 }, { opacity: 1 }], { duration: 300 }); * animate([el1, el2], [{ opacity: 0 }, { opacity: 1 }], 300); */ declare function animate(els: OneOrMany, keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | AnimateOptions): Animation[]; declare namespace animate { var fadeIn: (els: OneOrMany, duration?: number) => Animation[]; var fadeOut: (els: OneOrMany, duration?: number) => Animation[]; var slideTo: (els: OneOrMany, to: { x?: number; y?: number; }, duration?: number) => Animation[]; } export { animate }; export type { AnimateOptions };