/** * Debounce a possibly-undefined callback. The latest `fn` is always invoked * (captured by ref, so changing it between renders doesn't reset the timer), * and any pending call is cleared on unmount. `cancel` drops a pending call — * use it when a selection makes the trailing search irrelevant. */ export declare function useDebouncedCallback(fn: ((...args: A) => void) | undefined, ms: number): ((...args: A) => void) & { cancel: () => void; };