import { AbstractDocument } from "../../documents";
import { RestDocument } from "./RestDocument";
import { RestWebServiceDocumentState } from "./RestWebServiceDocumentState";
import { DocumentFile, FileExtract, HistoryEntry, Info, InfoType, PdfPassword } from "../../../generated-sources";
import { AxiosProgressEvent } from "axios";
export declare class RestWebServiceDocument extends AbstractDocument implements RestDocument {
    private readonly documentState;
    constructor(documentState: RestWebServiceDocumentState);
    accessInternalState(): RestWebServiceDocumentState;
    getDocumentId(): string;
    getDocumentFile(): DocumentFile;
    getHistory(): Array<HistoryEntry>;
    getHistoryEntry(historyId: number): HistoryEntry;
    activeHistory(): HistoryEntry;
    updateHistoryEntry(historyEntry: HistoryEntry): void;
    lastHistory(): HistoryEntry;
    getHistorySize(): number;
    downloadDocument(options?: {
        onProgress?: (event: AxiosProgressEvent) => void;
        abortSignal?: AbortSignal;
    }): Promise<Buffer>;
    deleteDocument(): Promise<void>;
    renameDocument(fileName: string): Promise<RestDocument>;
    updateDocumentSecurity(passwordType: PdfPassword): Promise<RestDocument>;
    getDocumentInfo(infoType: InfoType): Promise<Info>;
    extractDocument(fileExtract: FileExtract): Promise<Array<RestDocument>>;
    extractArchiveFile(archivePath: string): Promise<Buffer>;
    updateDocument(data: Blob): Promise<RestDocument>;
}
