/** * Adds a timeout to the promise, that is, return a promise that will either resolve * as the original one or be rejected by a timeout with the specified error. */ export declare const addTimeoutToPromise: (promise: Promise, timeout: number, timeoutError?: Error | undefined) => Promise;