/** A deadline cancels the underlying operation as well as the caller's wait. */ export declare function withDeadline(timeoutMs: number, parent: AbortSignal | undefined, task: (signal: AbortSignal) => Promise, onAbort?: () => void): Promise; export declare function delay(ms: number, signal?: AbortSignal): Promise;