type VoidFunction = (...args: any) => void; /** * Returns a function that will only execute after no further calls have been made for a given time. * * **Note: functions returned by this are not suitable for use in components! For that, see {@link useDebouncedCallback}**. * * @param func the function to execute * @param wait the time to wait, in milliseconds */ export declare const debounce: (func: F, wait: number) => (...args: Parameters) => void; /** * Returns a memoized function that will only execute after no further calls have been made for a given time. * * Callbacks returned by this method *are* safe to use within components, as their reference will be guaranteed stable. * * @param func the function to execute * @param wait the time to wait, in milliseconds */ export declare const useDebouncedCallback: (func: F, wait: number) => (...args: Parameters) => void; export {};