/** * Creates a new Promise that wraps a provided Promise with a timeout. * If the original Promise resolves/rejects before the timeout * expires, the new Promise will resolve/reject as usual, * otherwise, it will reject with a timeout message. * * @param originalPromise the original Promise to wrap with the timeout * @param ms milliseconds to wait before rejecting due to timeout * @param timeoutMessage optional custom timeout message, or a callback returning one */ export declare function timeout(originalPromise: Promise, ms: number, timeoutMessage?: string | (() => string)): Promise; //# sourceMappingURL=timeout.d.ts.map