export declare class AbortError extends Error { } export declare class TimeoutError extends Error { } export declare type AbortableOption = { timeout?: number; signal?: AbortSignal; alwaysPendingWhenAborted?: boolean; }; export declare function abortableAsync(fn: (this: T, ...p: P) => Promise, opt?: AbortableOption): (this: T, ...args: P) => Promise;