/** Error thrown by {@link withTimeout} when the deadline is exceeded. */
export declare class TimeoutError extends Error {
    constructor(message?: string);
}
/** Resolves with `promise` or rejects if it does not settle before `timeoutMs`. */
export declare function withTimeout<T>(promise: Promise<T>, timeoutMs: number, message?: string): Promise<T>;
//# sourceMappingURL=async.d.ts.map