import * as VIM from '../../core-viewers/webgl/index';
import { LoadingError } from '../webgl/webglLoading';
type RequestCallbacks = {
    onProgress: (p: VIM.IProgressLogs) => void;
    onError: (e: LoadingError) => void;
    onDone: () => void;
};
/**
 * Class to handle loading a request.
 */
export declare class LoadRequest {
    readonly source: any;
    private _callbacks;
    private _request;
    private _progress;
    private _progressPromise;
    private _isDone;
    private _completionPromise;
    constructor(callbacks: RequestCallbacks, source: VIM.RequestSource, settings?: VIM.VimPartialSettings);
    private startRequest;
    private onProgress;
    private onSuccess;
    private onError;
    private end;
    getProgress(): AsyncGenerator<VIM.IProgressLogs, void, void>;
    getResult(): Promise<import("../../core-viewers/webgl/utils/requestResult").RequestResult<VIM.Vim>>;
    abort(): void;
}
export {};
