/** * Options for useCounter hook */ export type UseCounterOptions = { min?: number; max?: number; step?: number; }; /** * Hook for managing counter state with increment/decrement * * @param initialValue - Initial counter value (default: 0) * @param options - Counter options (min, max, step) * @returns Tuple of [count, { increment, decrement, reset, setCount }] * * @example * ```tsx * const Counter = () => { * const [count, { increment, decrement, reset }] = useCounter(0, { min: 0, max: 10 }); * return ( *