/** * Throttle a function. * Ensures the function is called at most once every `ms` milliseconds. * Supports a trailing call: if the function is called during the throttle * period, the last call will be executed after the period ends. * * @param fn - The function to throttle * @param ms - Throttle interval in milliseconds (default 200) * @returns The throttled function with a `cancel` method */ export declare function useThrottleFn any>(fn: T, ms?: number): T & { cancel: () => void };