import * as Core from '../../core-viewers';
import { LoadingError } from '../webgl/loading';
type RequestCallbacks = {
    onProgress: (p: Core.Webgl.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: Core.Webgl.RequestSource, settings?: Core.Webgl.VimPartialSettings);
    private startRequest;
    private onProgress;
    private onSuccess;
    private onError;
    private end;
    getProgress(): AsyncGenerator<Core.Webgl.IProgressLogs, void, void>;
    getResult(): Promise<import("../../utils").Result<Core.Webgl.Vim>>;
    abort(): void;
}
export {};
