/** * Waits for a while, unless aborted first. * @param milliseconds - How long to wait. * @param signal - Rejects the wait with its reason when aborted. * @returns A promise that resolves after the wait. */ export declare function delay(milliseconds: number, signal?: AbortSignal): Promise; /** * Waits for a promise, unless aborted first. Aborting does not stop the work the promise stands for. * @param promise - The promise to wait for. * @param signal - Rejects the wait with its reason when aborted. * @returns The value of the promise. */ export declare function untilAborted(promise: Promise, signal?: AbortSignal): Promise; /** * Reads a sync or async iterable lazily, stopping as soon as a signal aborts, even while the source is waiting for * its next value. * @param source - The iterable to read. * @param signal - Stops reading when aborted. * @returns The values of the source. */ export declare function readUntilAborted(source: AsyncIterable | Iterable, signal: AbortSignal): AsyncGenerator; //# sourceMappingURL=abortable.d.ts.map