/**
 * debounce limits time a function can be executed
 * @param func function to debounce
 * @param wait wait for x time
 */
export declare function debounce<A = unknown, R = void>(func: (args?: A) => R, wait: number): [(args?: A) => Promise<R>, () => void];
