/** * A collection of async utilities. * If we ever need to add anything fancy, then https://github.com/vscode-shellcheck/vscode-shellcheck/blob/master/src/utils/async.ts * is a good place to look. */ type UnwrapPromise = T extends Promise ? U : T; /** * Debounce a function call by a given amount of time. Only the last call * will be resolved. * Inspired by https://gist.github.com/ca0v/73a31f57b397606c9813472f7493a940 */ export declare const debounce: any>(func: F, waitForMs: number) => (...args: Parameters) => Promise>>; export {};