/** * 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 ( *
* * {count} * * *
* ); * }; * ``` */ export declare function useCounter(initialValue?: number, options?: UseCounterOptions): [ number, { increment: () => void; decrement: () => void; reset: () => void; setCount: (value: number | ((previous: number) => number)) => void; } ]; //# sourceMappingURL=useCounter.d.ts.map