import { C8o, FullSyncPolicy } from "./c8o.service"; import { C8oResponseListener } from "./c8oResponse.service"; import { C8oFullSyncDatabase } from "./fullSyncDatabase.service"; import { FullSyncDocumentOperationResponse, FullSyncDefaultResponse } from "./fullSyncResponse.service"; import { C8oLocalCacheResponse } from "./c8oLocalCacheResponse.service"; import { C8oFullSyncChangeListener } from "./c8oFullSyncChangeListener.service"; export declare class C8oFullSync { private static FULL_SYNC_URL_PATH; static FULL_SYNC_PROJECT: string; static FULL_SYNC__ID: string; static FULL_SYNC__REV: string; static FULL_SYNC__ATTACHMENTS: string; c8o: C8o; protected fullSyncDatabaseUrlBase: string; protected localSuffix: string; constructor(c8o: C8o); handleFullSyncRequest(_parameters: Object, listener: C8oResponseListener): Promise; handleFullSyncResponse(response: any, listener: C8oResponseListener): any; static isFullSyncRequest(requestParameter: Object): boolean; } export declare class C8oFullSyncCbl extends C8oFullSync { private static ATTACHMENT_PROPERTY_KEY_CONTENT_URL; private fullSyncDatabases; private fullSyncChangeListeners; private cblChangeListeners; constructor(c8o: C8o); getOrCreateFullSyncDatabase(databaseName: string): C8oFullSyncDatabase; handleFullSyncResponse(response: any, listener: C8oResponseListener): any; handleGetAttachmentUrlRequest(fullSyncDatabaseName: string, docid: string, parameters: Object): Promise; handleGetDocumentRequest(fullSyncDatabaseName: string, docid: string, parameters: Object): Promise; handleDeleteDocumentRequest(DatabaseName: string, docid: string, parameters: Object): Promise; handlePostDocumentRequest(databaseName: string, fullSyncPolicy: FullSyncPolicy, parameters: Object): Promise; handlePutAttachmentRequest(databaseName: string, docid: string, attachmentName: string, attachmentType: string, attachmentContent: MSStream): Promise; handleDeleteAttachmentRequest(databaseName: string, docid: string, attachmentName: string): Promise; handleAllDocumentsRequest(databaseName: string, parameters: Object): Promise; handleGetViewRequest(databaseName: string, ddocName: string, viewName: string, parameters: Object): Promise; handleSyncRequest(databaseName: string, parameters: Object, c8oResponseListener: C8oResponseListener): Promise; handleReplicatePullRequest(databaseName: string, parameters: Object, c8oResponseListener: C8oResponseListener): Promise; handleReplicatePushRequest(databaseName: string, parameters: Object, c8oResponseListener: C8oResponseListener): Promise; handleResetDatabaseRequest(databaseName: string): Promise; handleCreateDatabaseRequest(databaseName: string): FullSyncDefaultResponse; handleDestroyDatabaseRequest(databaseName: string): Promise; static mergeProperties(newProperties: Object, oldProperties: Object): void; static mergeArrayProperties(newArray: any, oldArray: any): void; getDocucmentFromDatabase(c8o: C8o, databaseName: string, documentId: string): Promise; overrideDocument(document: any, properties: Object, databaseName: any): void; getResponseFromLocalCache(c8oCallRequestIdentifier: string): Promise; saveResponseToLocalCache(c8oCallRequestIdentifier: string, localCacheResponse: C8oLocalCacheResponse): Promise; addFullSyncChangeListener(db: string, listener: C8oFullSyncChangeListener): void; removeFullSyncChangeListener(db: string, listener: C8oFullSyncChangeListener): void; }