UNPKG

terminus-cloud-settings-sync

Version:

Cloud Services sync the Tabby config and connections across platform devices.

27 lines (26 loc) 1.84 kB
import { ConfigService, PlatformService } from 'terminus-core'; import { ToastrService } from 'ngx-toastr'; import { EventEmitter } from "@angular/core"; export declare class SettingsHelperClass { private adapterHandler; private generatedCryptoHash; saveSettingsToFile(platform: PlatformService, adapter: string, params: any): Promise<any>; generateEncryptedTabbyFileForUpload(platform: PlatformService): Promise<any>; syncWithCloud(config: ConfigService, platform: PlatformService, toast: ToastrService, firstInit?: boolean, emitter?: EventEmitter<any>): Promise<any>; syncWithCloudSettings(platform: PlatformService, toast: ToastrService): Promise<void>; syncLocalSettingsToCloud(platform: PlatformService, toast: ToastrService): Promise<void>; readConfigFile(platform: PlatformService, isRaw?: boolean): any; readTabbyConfigFile(platform: PlatformService, isRaw?: boolean, isEncrypt?: boolean): any; backupTabbyConfigFile(platform: PlatformService): Promise<any>; saveIntervalSync(value: number, platform: PlatformService, toast: ToastrService): Promise<any>; toggleEnabledPlugin(value: boolean, platform: PlatformService, toast: ToastrService): Promise<any>; toggleEnabledShowLoader(value: boolean, platform: PlatformService, toast: ToastrService): Promise<any>; removeConfirmFile(platform: PlatformService, toast: ToastrService, needConfirm?: boolean): Promise<boolean>; _removeSavedConfig(platform: PlatformService, toast: ToastrService): boolean; doDescryption(content: string): string; verifyServerConfigIsValid(configRawData: string): boolean; clearLastErrorMessage(platform: PlatformService, adapter: string, params: any): void; loadPluginSettings(platform: PlatformService): void; } declare const _default: SettingsHelperClass; export default _default;