/** * Gets a {@link Promise} that resolves when the specified {@link PromiseLike} is fulfilled * or when the specified {@link AbortSignal} has been aborted. * * @param promise the `Promise` or `PromiseLike` to wait for. * @param signal a signal used to cancel the wait. * * @returns a `Promise` that represents the asynchronous wait. * @throws `any` the provided `promise` has been rejected. * @throws {DOMException} the specified `signal` has been aborted. If the signal has been aborted with explicit reason, * the {@link AbortSignal.reason} will be thrown. */ export declare function wait(promise: PromiseLike, signal?: AbortSignal): Promise; /** * Gets a {@link Promise} that resolves when the specified {@link PromiseLike} is fulfilled, * when the specified `timeout` has reached, or when the specified {@link AbortSignal} has been aborted. * * @param promise the `Promise` or `PromiseLike` to wait for. * @param timeout the timeout after which the returned `Promise` should be rejected, if the provided `promise` has not settled. * specify `undefined` for infinite timeout. * @param signal a signal used to cancel the wait. * * @returns a `Promise` that represents the asynchronous wait. * @throws `any` the provided `promise` has been rejected. * @throws {TimeoutError} the specified `timeout` has been reached. * @throws {DOMException} the specified `signal` has been aborted. If the signal has been aborted with explicit reason, * the {@link AbortSignal.reason} will be thrown. */ export declare function wait(promise: PromiseLike, timeout?: number, signal?: AbortSignal): Promise; //# sourceMappingURL=wait.d.ts.map