terminus-cloud-settings-sync-plus 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE +7 -0
  3. package/README.en.md +41 -0
  4. package/README.md +40 -2
  5. package/dist/index.js +2 -0
  6. package/dist/index.js.LICENSE.txt +7439 -0
  7. package/dist/src/components/change-logs/change-logs.component.d.ts +244 -0
  8. package/dist/src/components/checkbox.component.d.ts +13 -0
  9. package/dist/src/components/cloud-sync-settings.component.d.ts +431 -0
  10. package/dist/src/components/feeback-form/feeback.component.d.ts +242 -0
  11. package/dist/src/components/master-password/master-password.component.d.ts +244 -0
  12. package/dist/src/components/sub-components/about/about.component.d.ts +20 -0
  13. package/dist/src/components/sub-components/amazon/amazon-settings.component.d.ts +459 -0
  14. package/dist/src/components/sub-components/built-in/builtin-settings.component.d.ts +444 -0
  15. package/dist/src/components/sub-components/check-for-updates/check-for-updates.component.d.ts +267 -0
  16. package/dist/src/components/sub-components/dropbox/dropbox-encryption-secret-modal.component.d.ts +252 -0
  17. package/dist/src/components/sub-components/dropbox/dropbox-settings.component.d.ts +488 -0
  18. package/dist/src/components/sub-components/ftp/ftp-settings.component.d.ts +460 -0
  19. package/dist/src/components/sub-components/gist/gist-settings.component.d.ts +461 -0
  20. package/dist/src/components/sub-components/webdav/webdav-settings.component.d.ts +454 -0
  21. package/dist/src/components/toggle.component.d.ts +4 -0
  22. package/dist/src/data/lang.d.ts +245 -0
  23. package/dist/src/data/s3-data.d.ts +15 -0
  24. package/dist/src/data/setting-items.d.ts +198 -0
  25. package/dist/src/index.d.ts +47 -0
  26. package/dist/src/interface/index.d.ts +65 -0
  27. package/dist/src/providers/cloud-sync-actions.d.ts +15 -0
  28. package/dist/src/providers/cloud-sync-command.provider.d.ts +16 -0
  29. package/dist/src/providers/cloud-sync-toolbar.provider.d.ts +7 -0
  30. package/dist/src/services/dev-constants.d.ts +4 -0
  31. package/dist/src/services/tabby-sync-upgrade.d.ts +10 -0
  32. package/dist/src/services/toast.d.ts +61 -0
  33. package/dist/src/settings.d.ts +7 -0
  34. package/dist/src/utils/CloudSyncSettingsHelper.d.ts +8 -0
  35. package/dist/src/utils/Logger.d.ts +29 -0
  36. package/dist/src/utils/cloud-components/AmazonS3.d.ts +38 -0
  37. package/dist/src/utils/cloud-components/Dropbox.d.ts +50 -0
  38. package/dist/src/utils/cloud-components/FTP.d.ts +46 -0
  39. package/dist/src/utils/cloud-components/WebDav.d.ts +34 -0
  40. package/dist/src/utils/cloud-components/gist.d.ts +86 -0
  41. package/dist/src/utils/cloud-components/gists/gists.d.ts +15 -0
  42. package/dist/src/utils/cloud-components/gists/gitee.d.ts +16 -0
  43. package/dist/src/utils/cloud-components/gists/github.d.ts +16 -0
  44. package/dist/src/utils/cloud-components/gists/gitlab.d.ts +44 -0
  45. package/dist/src/utils/cloud-components/sync-utils.d.ts +90 -0
  46. package/dist/src/utils/config-hash.d.ts +21 -0
  47. package/dist/src/utils/dev-mock-data.d.ts +6 -0
  48. package/dist/src/utils/settings-crypto.d.ts +53 -0
  49. package/dist/src/utils/settings-helper.d.ts +177 -0
  50. package/dist/src/utils/settings-secret.d.ts +16 -0
  51. package/dist/src/utils/sync-lock.d.ts +44 -0
  52. package/dist/src/utils/sync-payload.d.ts +38 -0
  53. package/dist/src/utils/sync-state.d.ts +55 -0
  54. package/package.json +98 -6
@@ -0,0 +1,454 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ConfigService, PlatformService } from 'terminus-core';
3
+ interface formData {
4
+ host: string;
5
+ port: string;
6
+ username: string;
7
+ password: string;
8
+ location: string;
9
+ }
10
+ export declare class CloudSyncWebDavSettingsComponent implements OnInit {
11
+ private config;
12
+ private platform;
13
+ translate: {
14
+ lang: {
15
+ common: {
16
+ menu_title: string;
17
+ verifyConfigString: string;
18
+ config_inject_header: string;
19
+ errors: {
20
+ invalidServerConfig: string;
21
+ };
22
+ };
23
+ form: {
24
+ error: {
25
+ required_all: string;
26
+ };
27
+ };
28
+ tabs: {
29
+ general: string;
30
+ security: string;
31
+ feedback: string;
32
+ change_logs: string;
33
+ check_for_update: string;
34
+ };
35
+ alerts: {
36
+ debug_build: string;
37
+ update_available: string;
38
+ };
39
+ settings: {
40
+ title: string;
41
+ sub_title: string;
42
+ service_label: string;
43
+ service_hint: string;
44
+ sync_enabled_label: string;
45
+ sync_enabled_hint: string;
46
+ show_loader_label: string;
47
+ show_loader_hint: string;
48
+ interval_label: string;
49
+ interval_hint: string;
50
+ encryption_title: string;
51
+ encryption_hint: string;
52
+ encryption_secret_label: string;
53
+ encryption_secret_hint: string;
54
+ encryption_secret_placeholder: string;
55
+ encryption_confirm_label: string;
56
+ encryption_confirm_hint: string;
57
+ encryption_confirm_placeholder: string;
58
+ encryption_show_secret: string;
59
+ encryption_hide_secret: string;
60
+ encryption_show_confirmation: string;
61
+ encryption_hide_confirmation: string;
62
+ encryption_set: string;
63
+ encryption_configured: string;
64
+ encryption_configured_hint: string;
65
+ encryption_legacy_title: string;
66
+ encryption_legacy_warning: string;
67
+ encryption_recovery_warning: string;
68
+ encryption_mismatch: string;
69
+ encryption_saved: string;
70
+ encryption_failed: string;
71
+ encryption_already_configured: string;
72
+ amazon: {
73
+ connected: string;
74
+ save_settings_failed: string;
75
+ save_settings_success: string;
76
+ };
77
+ error_connection_timeout: string;
78
+ };
79
+ sync: {
80
+ loading_config: string;
81
+ sync_confirmation: string;
82
+ setting_valid: string;
83
+ error_setting_save_file: string;
84
+ error_connection: string;
85
+ error_invalid_setting: string;
86
+ error_invalid_setting_2: string;
87
+ error_save_setting: string;
88
+ need_to_save_config: string;
89
+ sync_success: string;
90
+ sync_error: string;
91
+ sync_server_failed: string;
92
+ sync_enabled: string;
93
+ sync_disabled: string;
94
+ loader_enabled: string;
95
+ loader_disabled: string;
96
+ confirm_remove_setting: string;
97
+ remove_setting_success: string;
98
+ remove_setting_error: string;
99
+ remove_secret_error: string;
100
+ setting_changes_saved: string;
101
+ confirm_push_local: string;
102
+ };
103
+ log: {
104
+ invalid_cloud_settings: string;
105
+ read_cloud_settings: string;
106
+ error_upload_settings: string;
107
+ error_test_connection: string;
108
+ };
109
+ s3: {
110
+ title: string;
111
+ title_blackblaze: string;
112
+ app_id_placeholder: string;
113
+ app_secret_placeholder: string;
114
+ blackblaze_key_placeholder: string;
115
+ blackblaze_app_key_placeholder: string;
116
+ bucket_placeholder: string;
117
+ region_placeholder: string;
118
+ blackblaze_region_placeholder: string;
119
+ endpoint_placeholder: string;
120
+ location_placeholder: string;
121
+ blackblaze_region_help: string;
122
+ };
123
+ ftp: {
124
+ title: string;
125
+ host_placeholder: string;
126
+ location_placeholder: string;
127
+ username_placeholder: string;
128
+ password_placeholder: string;
129
+ port_placeholder: string;
130
+ };
131
+ webdav: {
132
+ title: string;
133
+ host_placeholder: string;
134
+ username_placeholder: string;
135
+ password_placeholder: string;
136
+ port_placeholder: string;
137
+ location_placeholder: string;
138
+ };
139
+ gist: {
140
+ title: string;
141
+ name: string;
142
+ id: string;
143
+ token: string;
144
+ invalid_provider: string;
145
+ enter_id: string;
146
+ error_create_gist: string;
147
+ help_github: string;
148
+ help_gitee: string;
149
+ };
150
+ dropbox: {
151
+ title: string;
152
+ title_connecting: string;
153
+ callback_waiting: string;
154
+ callback_listener_unavailable: string;
155
+ callback_title: string;
156
+ callback_hint: string;
157
+ callback_invalid: string;
158
+ callback_timeout: string;
159
+ use_manual_callback: string;
160
+ obtain_token: string;
161
+ obtaining_token: string;
162
+ paste_from_clipboard: string;
163
+ connected: string;
164
+ last_sync_error: string;
165
+ disconnect_account: string;
166
+ confirm_disconnect: string;
167
+ encryption_secret_title: string;
168
+ encryption_secret_required: string;
169
+ encryption_secret_label: string;
170
+ encryption_secret_placeholder: string;
171
+ encryption_secret_invalid: string;
172
+ encryption_secret_saved: string;
173
+ encryption_unlock: string;
174
+ encryption_unlocking: string;
175
+ missing_app_credentials: string;
176
+ missing_callback_url: string;
177
+ connect_success: string;
178
+ clipboard_success: string;
179
+ clipboard_error: string;
180
+ };
181
+ builtin: {
182
+ login_title: string;
183
+ reset_title: string;
184
+ email_placeholder: string;
185
+ password_placeholder: string;
186
+ reset_notice: string;
187
+ };
188
+ vault: {
189
+ title: string;
190
+ description: string;
191
+ };
192
+ feedback: {
193
+ title: string;
194
+ description: string;
195
+ description_2: string;
196
+ open_issue_hint: string;
197
+ };
198
+ changelogs: {
199
+ title: string;
200
+ description: string;
201
+ column_version: string;
202
+ column_date: string;
203
+ column_description: string;
204
+ };
205
+ updates: {
206
+ title: string;
207
+ current_version: string;
208
+ check_hint: string;
209
+ latest_version: string;
210
+ whats_new: string;
211
+ up_to_date: string;
212
+ check_failed: string;
213
+ upgrade_success: string;
214
+ rollback_title: string;
215
+ rollback_warning_backup: string;
216
+ rollback_warning_risk: string;
217
+ confirm_rollback: string;
218
+ column_version: string;
219
+ column_action: string;
220
+ };
221
+ buttons: {
222
+ sync_from_cloud: string;
223
+ sync_from_local: string;
224
+ check_update: string;
225
+ yes: string;
226
+ cancel: string;
227
+ no: string;
228
+ ok: string;
229
+ view: string;
230
+ connect: string;
231
+ disconnect: string;
232
+ open_github_issue: string;
233
+ rollback: string;
234
+ update_to: string;
235
+ visit_plugin_page: string;
236
+ login: string;
237
+ reset_password: string;
238
+ send_reset_link: string;
239
+ test_connection: string;
240
+ processing: string;
241
+ save_settings: string;
242
+ upload_settings: string;
243
+ cloud_syncing_progress: string;
244
+ remove_saved_setting: string;
245
+ };
246
+ };
247
+ trans: (key: string, replacements?: Record<string, string | number>) => string;
248
+ };
249
+ presetData: {
250
+ defaultSyncInterval: number;
251
+ syncSkewToleranceSeconds: number;
252
+ tabbySettingsFilename: string;
253
+ storedSettingsFilename: string;
254
+ syncStateFilename: string;
255
+ cloudSettingsFilename: string;
256
+ tabbyLocalEncryptedFile: string;
257
+ values: {
258
+ BUILT_IN: string;
259
+ S3: string;
260
+ WASABI: string;
261
+ DIGITAL_OCEAN: string;
262
+ BLACKBLAZE: string;
263
+ S3_COMPATIBLE: string;
264
+ WEBDAV: string;
265
+ FTP: string;
266
+ GIST: string;
267
+ DROPBOX: string;
268
+ };
269
+ amazonEndpoints: {
270
+ WASABI: string;
271
+ DIGITAL_OCEAN: string;
272
+ BLACKBLAZE: string;
273
+ S3_COMPATIBLE: string;
274
+ };
275
+ serviceProvidersList: {
276
+ name: string;
277
+ value: string;
278
+ }[];
279
+ BuiltinLoginMode: {
280
+ LOGIN: string;
281
+ RESET_PASSWORD: string;
282
+ };
283
+ availablePluginVersions: any[];
284
+ formData: {
285
+ [x: string]: {
286
+ email: string;
287
+ password: string;
288
+ reset_password_email: string;
289
+ appId?: undefined;
290
+ appSecret?: undefined;
291
+ location?: undefined;
292
+ bucket?: undefined;
293
+ region?: undefined;
294
+ endpointUrl?: undefined;
295
+ host?: undefined;
296
+ username?: undefined;
297
+ port?: undefined;
298
+ protocol?: undefined;
299
+ type?: undefined;
300
+ name?: undefined;
301
+ accessToken?: undefined;
302
+ id?: undefined;
303
+ apiKey?: undefined;
304
+ } | {
305
+ appId: string;
306
+ appSecret: string;
307
+ location: string;
308
+ bucket: string;
309
+ region: string;
310
+ email?: undefined;
311
+ password?: undefined;
312
+ reset_password_email?: undefined;
313
+ endpointUrl?: undefined;
314
+ host?: undefined;
315
+ username?: undefined;
316
+ port?: undefined;
317
+ protocol?: undefined;
318
+ type?: undefined;
319
+ name?: undefined;
320
+ accessToken?: undefined;
321
+ id?: undefined;
322
+ apiKey?: undefined;
323
+ } | {
324
+ endpointUrl: string;
325
+ appId: string;
326
+ appSecret: string;
327
+ location: string;
328
+ bucket: string;
329
+ region: string;
330
+ email?: undefined;
331
+ password?: undefined;
332
+ reset_password_email?: undefined;
333
+ host?: undefined;
334
+ username?: undefined;
335
+ port?: undefined;
336
+ protocol?: undefined;
337
+ type?: undefined;
338
+ name?: undefined;
339
+ accessToken?: undefined;
340
+ id?: undefined;
341
+ apiKey?: undefined;
342
+ } | {
343
+ host: string;
344
+ username: string;
345
+ password: string;
346
+ location: string;
347
+ port: string;
348
+ email?: undefined;
349
+ reset_password_email?: undefined;
350
+ appId?: undefined;
351
+ appSecret?: undefined;
352
+ bucket?: undefined;
353
+ region?: undefined;
354
+ endpointUrl?: undefined;
355
+ protocol?: undefined;
356
+ type?: undefined;
357
+ name?: undefined;
358
+ accessToken?: undefined;
359
+ id?: undefined;
360
+ apiKey?: undefined;
361
+ } | {
362
+ protocol: string;
363
+ host: string;
364
+ username: string;
365
+ password: string;
366
+ location: string;
367
+ port: number;
368
+ email?: undefined;
369
+ reset_password_email?: undefined;
370
+ appId?: undefined;
371
+ appSecret?: undefined;
372
+ bucket?: undefined;
373
+ region?: undefined;
374
+ endpointUrl?: undefined;
375
+ type?: undefined;
376
+ name?: undefined;
377
+ accessToken?: undefined;
378
+ id?: undefined;
379
+ apiKey?: undefined;
380
+ } | {
381
+ type: string;
382
+ name: string;
383
+ accessToken: string;
384
+ id: string;
385
+ email?: undefined;
386
+ password?: undefined;
387
+ reset_password_email?: undefined;
388
+ appId?: undefined;
389
+ appSecret?: undefined;
390
+ location?: undefined;
391
+ bucket?: undefined;
392
+ region?: undefined;
393
+ endpointUrl?: undefined;
394
+ host?: undefined;
395
+ username?: undefined;
396
+ port?: undefined;
397
+ protocol?: undefined;
398
+ apiKey?: undefined;
399
+ } | {
400
+ apiKey: string;
401
+ email?: undefined;
402
+ password?: undefined;
403
+ reset_password_email?: undefined;
404
+ appId?: undefined;
405
+ appSecret?: undefined;
406
+ location?: undefined;
407
+ bucket?: undefined;
408
+ region?: undefined;
409
+ endpointUrl?: undefined;
410
+ host?: undefined;
411
+ username?: undefined;
412
+ port?: undefined;
413
+ protocol?: undefined;
414
+ type?: undefined;
415
+ name?: undefined;
416
+ accessToken?: undefined;
417
+ id?: undefined;
418
+ };
419
+ };
420
+ external_urls: {
421
+ ApiUrl: string;
422
+ BlackBlazeHelp: string;
423
+ checkForUpdateUrl: string;
424
+ githubIssuesUrl: string;
425
+ };
426
+ isCloudStorageS3Compatibility(provider: string): boolean;
427
+ gistUrls: {
428
+ viewItems: {
429
+ github: string;
430
+ gitee: string;
431
+ gitlab: string;
432
+ };
433
+ github: string;
434
+ gitee: string;
435
+ gitlab: string;
436
+ };
437
+ donationUrl: string;
438
+ pluginUrl: string;
439
+ };
440
+ isPreloadingSavedConfig: boolean;
441
+ isSettingSaved: boolean;
442
+ isCheckLoginSuccess: boolean;
443
+ isFormProcessing: boolean;
444
+ isSyncingProgress: boolean;
445
+ form: formData;
446
+ constructor(config: ConfigService, platform: PlatformService);
447
+ ngOnInit(): void;
448
+ testConnection(): Promise<void>;
449
+ saveSettings(): Promise<void>;
450
+ uploadLocalSettings(): Promise<void>;
451
+ cancelSaveSettings(): void;
452
+ removeSavedSettings(): Promise<void>;
453
+ }
454
+ export {};
@@ -0,0 +1,4 @@
1
+ import { CheckboxComponent } from './checkbox.component';
2
+ /** @hidden */
3
+ export declare class ToggleComponent extends CheckboxComponent {
4
+ }
@@ -0,0 +1,245 @@
1
+ declare const CloudSyncLang: {
2
+ lang: {
3
+ common: {
4
+ menu_title: string;
5
+ verifyConfigString: string;
6
+ config_inject_header: string;
7
+ errors: {
8
+ invalidServerConfig: string;
9
+ };
10
+ };
11
+ form: {
12
+ error: {
13
+ required_all: string;
14
+ };
15
+ };
16
+ tabs: {
17
+ general: string;
18
+ security: string;
19
+ feedback: string;
20
+ change_logs: string;
21
+ check_for_update: string;
22
+ };
23
+ alerts: {
24
+ debug_build: string;
25
+ update_available: string;
26
+ };
27
+ settings: {
28
+ title: string;
29
+ sub_title: string;
30
+ service_label: string;
31
+ service_hint: string;
32
+ sync_enabled_label: string;
33
+ sync_enabled_hint: string;
34
+ show_loader_label: string;
35
+ show_loader_hint: string;
36
+ interval_label: string;
37
+ interval_hint: string;
38
+ encryption_title: string;
39
+ encryption_hint: string;
40
+ encryption_secret_label: string;
41
+ encryption_secret_hint: string;
42
+ encryption_secret_placeholder: string;
43
+ encryption_confirm_label: string;
44
+ encryption_confirm_hint: string;
45
+ encryption_confirm_placeholder: string;
46
+ encryption_show_secret: string;
47
+ encryption_hide_secret: string;
48
+ encryption_show_confirmation: string;
49
+ encryption_hide_confirmation: string;
50
+ encryption_set: string;
51
+ encryption_configured: string;
52
+ encryption_configured_hint: string;
53
+ encryption_legacy_title: string;
54
+ encryption_legacy_warning: string;
55
+ encryption_recovery_warning: string;
56
+ encryption_mismatch: string;
57
+ encryption_saved: string;
58
+ encryption_failed: string;
59
+ encryption_already_configured: string;
60
+ amazon: {
61
+ connected: string;
62
+ save_settings_failed: string;
63
+ save_settings_success: string;
64
+ };
65
+ error_connection_timeout: string;
66
+ };
67
+ sync: {
68
+ loading_config: string;
69
+ sync_confirmation: string;
70
+ setting_valid: string;
71
+ error_setting_save_file: string;
72
+ error_connection: string;
73
+ error_invalid_setting: string;
74
+ error_invalid_setting_2: string;
75
+ error_save_setting: string;
76
+ need_to_save_config: string;
77
+ sync_success: string;
78
+ sync_error: string;
79
+ sync_server_failed: string;
80
+ sync_enabled: string;
81
+ sync_disabled: string;
82
+ loader_enabled: string;
83
+ loader_disabled: string;
84
+ confirm_remove_setting: string;
85
+ remove_setting_success: string;
86
+ remove_setting_error: string;
87
+ remove_secret_error: string;
88
+ setting_changes_saved: string;
89
+ confirm_push_local: string;
90
+ };
91
+ log: {
92
+ invalid_cloud_settings: string;
93
+ read_cloud_settings: string;
94
+ error_upload_settings: string;
95
+ error_test_connection: string;
96
+ };
97
+ s3: {
98
+ title: string;
99
+ title_blackblaze: string;
100
+ app_id_placeholder: string;
101
+ app_secret_placeholder: string;
102
+ blackblaze_key_placeholder: string;
103
+ blackblaze_app_key_placeholder: string;
104
+ bucket_placeholder: string;
105
+ region_placeholder: string;
106
+ blackblaze_region_placeholder: string;
107
+ endpoint_placeholder: string;
108
+ location_placeholder: string;
109
+ blackblaze_region_help: string;
110
+ };
111
+ ftp: {
112
+ title: string;
113
+ host_placeholder: string;
114
+ location_placeholder: string;
115
+ username_placeholder: string;
116
+ password_placeholder: string;
117
+ port_placeholder: string;
118
+ };
119
+ webdav: {
120
+ title: string;
121
+ host_placeholder: string;
122
+ username_placeholder: string;
123
+ password_placeholder: string;
124
+ port_placeholder: string;
125
+ location_placeholder: string;
126
+ };
127
+ gist: {
128
+ title: string;
129
+ name: string;
130
+ id: string;
131
+ token: string;
132
+ invalid_provider: string;
133
+ enter_id: string;
134
+ error_create_gist: string;
135
+ help_github: string;
136
+ help_gitee: string;
137
+ };
138
+ dropbox: {
139
+ title: string;
140
+ title_connecting: string;
141
+ callback_waiting: string;
142
+ callback_listener_unavailable: string;
143
+ callback_title: string;
144
+ callback_hint: string;
145
+ callback_invalid: string;
146
+ callback_timeout: string;
147
+ use_manual_callback: string;
148
+ obtain_token: string;
149
+ obtaining_token: string;
150
+ paste_from_clipboard: string;
151
+ connected: string;
152
+ last_sync_error: string;
153
+ disconnect_account: string;
154
+ confirm_disconnect: string;
155
+ encryption_secret_title: string;
156
+ encryption_secret_required: string;
157
+ encryption_secret_label: string;
158
+ encryption_secret_placeholder: string;
159
+ encryption_secret_invalid: string;
160
+ encryption_secret_saved: string;
161
+ encryption_unlock: string;
162
+ encryption_unlocking: string;
163
+ missing_app_credentials: string;
164
+ missing_callback_url: string;
165
+ connect_success: string;
166
+ clipboard_success: string;
167
+ clipboard_error: string;
168
+ };
169
+ builtin: {
170
+ login_title: string;
171
+ reset_title: string;
172
+ email_placeholder: string;
173
+ password_placeholder: string;
174
+ reset_notice: string;
175
+ };
176
+ vault: {
177
+ title: string;
178
+ description: string;
179
+ };
180
+ feedback: {
181
+ title: string;
182
+ description: string;
183
+ description_2: string;
184
+ open_issue_hint: string;
185
+ };
186
+ changelogs: {
187
+ title: string;
188
+ description: string;
189
+ column_version: string;
190
+ column_date: string;
191
+ column_description: string;
192
+ };
193
+ updates: {
194
+ title: string;
195
+ current_version: string;
196
+ check_hint: string;
197
+ latest_version: string;
198
+ whats_new: string;
199
+ up_to_date: string;
200
+ check_failed: string;
201
+ upgrade_success: string;
202
+ rollback_title: string;
203
+ rollback_warning_backup: string;
204
+ rollback_warning_risk: string;
205
+ confirm_rollback: string;
206
+ column_version: string;
207
+ column_action: string;
208
+ };
209
+ buttons: {
210
+ sync_from_cloud: string;
211
+ sync_from_local: string;
212
+ check_update: string;
213
+ yes: string;
214
+ cancel: string;
215
+ no: string;
216
+ ok: string;
217
+ view: string;
218
+ connect: string;
219
+ disconnect: string;
220
+ open_github_issue: string;
221
+ rollback: string;
222
+ update_to: string;
223
+ visit_plugin_page: string;
224
+ login: string;
225
+ reset_password: string;
226
+ send_reset_link: string;
227
+ test_connection: string;
228
+ processing: string;
229
+ save_settings: string;
230
+ upload_settings: string;
231
+ cloud_syncing_progress: string;
232
+ remove_saved_setting: string;
233
+ };
234
+ };
235
+ /**
236
+ * Resolve a dotted translation key (e.g. `sync.sync_success`) to its string
237
+ * value. Returns an empty string when any segment of the path is missing or
238
+ * the resolved value is not a string.
239
+ *
240
+ * Pass `replacements` to substitute `{placeholder}` tokens in the resolved
241
+ * string, e.g. `trans('updates.current_version', { version: '1.7.0' })`.
242
+ */
243
+ trans: (key: string, replacements?: Record<string, string | number>) => string;
244
+ };
245
+ export default CloudSyncLang;