type UseCounterTimerOptions = { /** Interval in milliseconds between each tick. Default: 1000 */ interval?: number; /** Target value to count towards. Default: 0 */ target?: number; /** Callback when counter reaches target. Default: undefined */ onComplete?: () => void; }; /** * Counter hook that counts up or down towards a target value. * Direction is automatically determined by comparing initial value to target. * * @param initialValue - Starting value for the counter * @param options - Configuration options for the counter * @param options.interval - Interval in milliseconds between each tick. Default: 1000 * @param options.target - Target value to count towards. Default: 0 * @param options.onComplete - Callback when counter reaches target * @returns Object containing count (current value), start/stop/reset functions, and isActive state * * @example * // Count down from 10 to 0 * const { count, start } = useCounterTimer(10); * * @example * // Count up from 50 to 100 * const { count, start } = useCounterTimer(50, { target: 100 }); */ declare const useCounterTimer: (initialValue?: number, options?: UseCounterTimerOptions) => { count: number; start: (value?: number) => void; stop: () => void; reset: (value?: number) => void; isActive: boolean; }; export { useCounterTimer }; export type { UseCounterTimerOptions };