import { FetchError } from "../starnameClient/http"; export interface Task { run(): Promise; abort(): void; } export declare class Task implements Task { static toPromise(task: Task): Promise; } export type TaskError = Error; export declare const TaskAbortedError: FetchError;