export interface UseThrottleOptions { /** * Invoke immediately on the first call. * Default: true */ leading?: boolean; /** * Invoke once more after the delay * with the latest value. * Default: true */ trailing?: boolean; } /** * Throttles a state value so that it updates at most once every specified number of milliseconds. * Useful for handling rapid events like scrolling or resizing. * * @param value - The value to throttle. * @param delay - The throttle window in milliseconds (default: 300). * @param options - Additional options. * @returns The throttled value. * * @example * ```tsx * const [scroll, setScroll] = useState(0); * const throttledScroll = useThrottle(scroll, 200); * // throttledScroll updates maximally once every 200ms regardless of scroll speed * ``` */ export declare function useThrottle(value: T, delay?: number, options?: UseThrottleOptions): T;