import { AnnotationBase } from "../Annotations/AnnotationTypes"; import { ProgressDialogSink } from "../Dialogs/Types"; import { SaveSettings, StampCategory, ViewerFeatureName } from "../Models/ViewerTypes"; import { LocalDocumentModification } from "./LocalDocumentModification"; import { OpenDocumentInfo } from "./types"; export interface ISupportApiBase { clientId: string; docInfo: OpenDocumentInfo; documentId: string; isDocumentShared: boolean; isConnected: boolean; supportApiType?: SupportApiType; applyOptions(options: any): void; setViewer(viewer: any): any; canEditAnnotation(annotation?: AnnotationBase | null): boolean; checkDocumentLoader(): Promise; cancelTask?(correlationId?: string): Promise | undefined; checkTaskStatus?(correlationId?: string): Promise; closeDocumentLoader(): Promise; close(): Promise; connect(lazy?: boolean): Promise; dispose(): any; getDisabledFeatures(): ViewerFeatureName[] | null; getDownloadUrl(filename: string, format: "PDF" | "PNG" | "SVG" | undefined, correlationId: string): string; getDownloadUnmodifiedUrl(filename: string): string; uploadFiles(fileIds: string[], sink?: ProgressDialogSink): Promise; getLastError(): Promise; getStampCategories(): Promise; modify(documentModification: LocalDocumentModification, correlationId: string): Promise; openBinary(data: Uint8Array): Promise; serverVersion(): Promise; setOptions(saveSettings: SaveSettings | undefined, correlationId: string, fileName?: string): Promise; verifySignature(fieldName: string): Promise; } export type SupportApiType = "DsPdfWasm" | "WebApi" | "Custom"; export type TaskStatusAnswer = { taskType: ClientTaskType; current?: number; total?: number; done?: boolean; }; export declare enum ClientTaskType { Unspecified = 0, Save = 1, SaveAsImage = 2, SaveAsPng = 3, SaveAsSvg = 4 }