import { Contents } from '@jupyterlab/services';
import { TranslationBundle } from '@jupyterlab/translation';
import { Panel } from '@lumino/widgets';
import { Git } from '../../tokens';
export declare const createImageDiff: Git.Diff.Factory;
export declare class ImageDiffWidget extends Panel implements Git.Diff.IDiffWidget {
    constructor(model: Git.Diff.IModel, translator?: TranslationBundle);
    /**
     * Diff model
     */
    get model(): Git.Diff.IModel;
    /**
     * Promise which fulfills when the widget is ready.
     */
    get ready(): Promise<void>;
    get isFileResolved(): boolean;
    getResolvedFile(): Promise<Partial<Contents.IModel>>;
    refresh(): Promise<void>;
    /**
     * Display an error instead of the file diff
     *
     * @param error Error object
     */
    protected showError(error: Error): void;
    protected _container: HTMLElement;
    protected _isReady: Promise<void>;
    protected _model: Git.Diff.IModel;
    protected _trans: TranslationBundle;
}
