/** * Hook to simulate CSS `var(--bf-animation-duration)` * @param duration Optional animation duration in ms (default `200`) * @returns `0` for users with `prefers-reduced-motion`, otherwise the specified duration (default `200`) * @example * // 0` for users with `prefers-reduced-motion`, otherwise 200 * const animationDuration = useAnimationDuration() * @example * // 0` for users with `prefers-reduced-motion`, otherwise 500 * const animationDuration = useAnimationDuration(500) */ declare const useAnimationDuration: (duration?: number) => number; export default useAnimationDuration;