export type Debounced<A extends unknown[]> = ((...args: A) => void) & {
    flush: () => void;
    cancel: () => void;
};
export declare function debounce<A extends unknown[]>(func: (...args: A) => unknown, wait: number): Debounced<A>;
