export declare function delayMillis(millis: number): Promise; /** * Drop-in replacement for AsyncSink that also handles early cancellation, * calling the function installed in onCancel. */ export declare class CancellableAsyncSink implements AsyncIterator, AsyncIterable { private readonly sink; onCancel?: () => void; end(error?: Error): void; next(): Promise>; return(value: T): Promise<{ value: T; done: boolean; }>; write(value: T): void; [Symbol.asyncIterator](): this; }