/*! Copyright (c) 2020, XAPP AI */ export declare class TimeoutError extends Error { readonly name = "TimeoutError"; } /** * Wraps the function that returns a promise with a timeout * * @param timeoutMs * @param promise * @param failureMessage */ export declare const promiseWithTimeout: (timeoutMs: number, promise: () => Promise, failureMessage?: string | Error) => Promise;