import { ContextService } from '../context.service';
import * as Models from '../models';
import { ErrorService } from '../error.service';
import { Pane } from '../route-data';
export declare class AttachmentViewModel {
    readonly link: Models.Link;
    private readonly parent;
    private readonly context;
    private readonly error;
    readonly onPaneId: Pane;
    constructor(link: Models.Link, parent: Models.DomainObjectRepresentation, context: ContextService, error: ErrorService, onPaneId: Pane);
    private readonly href;
    private readonly mimeType;
    title: string;
    readonly downloadFile: () => Promise<Blob>;
    readonly clearCachedFile: () => void;
    empty: boolean;
    readonly displayInline: () => boolean;
    setImage(setImageOn: {
        image: string;
        title: string;
    }): void;
    setTitle(setTitleOn: {
        title: string;
    }): void;
}
