import { UserAccess, SharedDocumentInfo, SharedAccessMode, ModificationType, ModificationsState } from "../SharedDocuments/types"; import { ISupportApi } from "./ISupportApi"; import { GcPdfViewer } from "../GcPdfViewer"; import { AnnotationBase } from "../Annotations/AnnotationTypes"; import { ClientMessageType, ClientMessage, ClientRequestType } from "./Connection/ClientMessage"; import { ServerMessage, StartSharedModeResponse } from "./Connection/ServerMessage"; import { ProgressDialogSink } from "../Dialogs/Types"; import { SaveSettings, StampCategory, ViewerFeatureName } from "../Models/ViewerTypes"; import { DocumentModification, OpenDocumentInfo } from "./types"; import { SupportApiType, TaskStatusAnswer } from "./ISupportApiBase"; export declare class SupportApiImpl implements ISupportApi { private _host; private _supportApiUrl; private _openPromise?; private _openedDocumentInfo?; private _options; private _clientId; private _persistentConnection?; private _documentSharedFlag; private _webSocketUrl; private _requestInit; private _token; private _status; userAccessList: UserAccess[]; sharedAccessMode: SharedAccessMode; private _connected?; private _lastConnectAttemptPromise; private _serverVersion; constructor(_host: GcPdfViewer, options?: any); dispose(): void; get clientId(): string; get docInfo(): OpenDocumentInfo; get status(): 'opening' | 'opening-shared' | 'opened-shared' | 'opened' | 'closed'; set status(val: 'opening' | 'opening-shared' | 'opened-shared' | 'opened' | 'closed'); get supportApiType(): SupportApiType | undefined; applyOptions(options?: any): void; setViewer(viewer: any): void; get hasPersistentConnection(): boolean; canEditAnnotation(annotation?: AnnotationBase | null): boolean; close(): Promise; getDisabledFeatures(): ViewerFeatureName[] | null; listUsersWithAccess(): Promise; listAllUsers(): Promise; listSharedDocuments(): Promise; openSharedDocument(documentId: string): Promise; startSharedMode(): Promise; stopSharedMode(): Promise; shareDocument(userName: string, accessMode: SharedAccessMode, modificationsState: ModificationsState, startSharedMode?: boolean): Promise; unshareDocument(userName: string): Promise; sendMessage(type: ClientMessageType, messageData: Partial): Promise; sendRequest(type: ClientRequestType, messageData?: Partial): Promise; get documentId(): string; get isDocumentShared(): boolean; get isConnected(): boolean; set isConnected(val: boolean); connect(lazy?: boolean): Promise; modifySharedDocument(type: ModificationType, data?: { pageIndex: number; annotation: AnnotationBase; } | { pageIndex: number; annotationId: string; } | { resultStructure: number[]; structureChanges: { pageIndex: number; add: boolean; checkNumPages: number; }[]; pdfInfo: { numPages: number; fingerprint: string; }; }): Promise; onPushMessage(message: ServerMessage): void; getDownloadUrl(filename: string, format: "PDF" | "PNG" | "SVG" | undefined, correlationId: string): string; getDownloadUnmodifiedUrl(filename: string): string; setOptions(saveSettings: SaveSettings | undefined, correlationId: string, fileName?: string): Promise; openBinary(data: any): Promise; closeDocumentLoader(): Promise; checkDocumentLoader(): Promise; checkTaskStatus?(correlationId?: string): Promise; cancelTask?(correlationId?: string): Promise; getStampCategories(): Promise; getStampImageUrl(categoryId: string, imageName: string, enableCache: boolean): string; downloadFiles(fileIds: string[], sink?: ProgressDialogSink): Promise; uploadFiles(fileIds: string[], sink?: ProgressDialogSink): Promise; modify(documentModification: DocumentModification, correlationId: string): Promise; verifySignature(fieldName: string): Promise; serverVersion(): Promise; getLastError(): Promise; private _reset; }