UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

23 lines (22 loc) 1.13 kB
import { RestDocumentState } from "./RestDocumentState"; import { RestWebServiceDocument } from "./RestWebServiceDocument"; import { DocumentFile, HistoryEntry } from "../../../generated-sources"; import { DocumentManager } from "./DocumentManager"; import { RestWebServiceDocumentManager } from "./RestWebServiceDocumentManager"; export declare class RestWebServiceDocumentState implements RestDocumentState<RestWebServiceDocument> { private readonly historyMap; private readonly _documentManager; private _documentFile; constructor(documentFile: DocumentFile, documentManager: RestWebServiceDocumentManager); getDocumentId(): string; getDocumentFile(): DocumentFile; setDocumentFile(documentFile: DocumentFile): void; getHistory(): Array<HistoryEntry>; setHistory(historyEntries: Array<HistoryEntry>): void; getHistoryEntry(historyId: number): HistoryEntry; updateHistoryEntry(historyEntry: HistoryEntry): void; lastHistory(): HistoryEntry; getHistorySize(): number; activeHistory(): HistoryEntry; getDocumentManager(): DocumentManager<RestWebServiceDocument>; }