import { Abortable } from '../../abortable/abortable.class'; import { IAsyncTaskConstraint } from '../types/async-task-constraint.type'; import { AsyncTask } from '../async-task.class'; export interface IAsyncTimeoutThrowErrorFactory { (): any; } export declare const DEFAULT_ASYNC_TIMEOUT_THROW_ERROR_FACTORY: () => Error; export declare function asyncTimeoutThrow = any>(ms: number, abortable: Abortable, onTimeout?: IAsyncTimeoutThrowErrorFactory): AsyncTask;