export interface DoneError<TResult = any> {
    done: (result: TResult) => void;
    error: (err: Error | string) => void;
}
export interface DoneErrorResult<TResult = any> {
    doneError: DoneError<TResult>;
    promise: Promise<TResult>;
}
export declare function getDoneError<TResult>(): DoneErrorResult<TResult>;
