import type { Timeout } from "../platform/web/dom/Clock.js"; import type { IAbortable } from "./AbortableOperation"; type TimeoutCreator = (ms: number) => Timeout; export declare function abortOnTimeout(createTimeout: TimeoutCreator, timeoutAmount: number, requestResult: IAbortable, responsePromise: Promise): Promise; export declare function tests(): { "ConnectionError on timeout": (assert: any) => Promise; "Abort is canceled once response resolves": (assert: any) => Promise; "AbortError from request is not mapped to ConnectionError": (assert: any) => Promise; }; export {};