import { EventDefinition, HttpClient } from '@wix/sdk-types'; import { BackupDeletedEnvelope, BackupRestorationStateChangedEnvelope, BackupStateChangedEnvelope, CreateBackupResponse, CreateBackupResponseNonNullableFields, ListBackupsOptions, ListBackupsResponse, ListBackupsResponseNonNullableFields, ListRestorationsOptions, ListRestorationsResponse, ListRestorationsResponseNonNullableFields, RestoreBackupResponse, RestoreBackupResponseNonNullableFields, RestorePartialBackupOptions } from './data-v2-backup-data.universal.js'; export declare const __metadata: { PACKAGE_NAME: string; }; export declare function createBackup(httpClient: HttpClient): CreateBackupSignature; interface CreateBackupSignature { /** * Creates an on-demand backup of live content in a site's collections. * * * By default, all of the site's collections are included in the backup. For a partial backup, specify which collections to include in the `backup.collections` parameter. * * The process of creating a backup takes time. * You can check whether a backup has completed successfully with List Backups. * * You can store up to 3 on-demand backups for each site. * If 3 on-demand backups already exist, the oldest existing on-demand backup for the site is deleted when a new one is created. Automated backups are not affected. */ (): Promise; } export declare function listBackups(httpClient: HttpClient): ListBackupsSignature; interface ListBackupsSignature { /** * Retrieves a list of all backups for a site. * * Results are sorted by requested date, with the newest first. * * You can use this method to check whether a backup initiated with Create Backup has been completed successfully. */ (options?: ListBackupsOptions | undefined): Promise; } export declare function restoreBackup(httpClient: HttpClient): RestoreBackupSignature; interface RestoreBackupSignature { /** * Restores all data from a backup. * * The process of restoring data from a backup takes time. * You can check whether your restoration has completed successfully with List Restorations. * @param - ID of backup to be restored. */ (backupId: string): Promise; } export declare function restorePartialBackup(httpClient: HttpClient): RestorePartialBackupSignature; interface RestorePartialBackupSignature { /** * Restores specific collections from a backup. * * The process of restoring data from a backup takes time. * You can check whether your restoration has completed successfully with List Restorations. * @param - ID of backup to be restored. * @param - Collections to be restored. * * **Note**: If two collections have a multireference relation, the references will be restored only if both collections are restored. */ (backupId: string, dataCollectionIds: string[], options?: RestorePartialBackupOptions | undefined): Promise; } export declare function listRestorations(httpClient: HttpClient): ListRestorationsSignature; interface ListRestorationsSignature { /** * Retrieves a list of all data restorations from backups. * * Results are sorted by requested date, with the newest first. * * You can use this method to check whether a restoration initiated with Restore Backup has been completed successfully. */ (options?: ListRestorationsOptions | undefined): Promise; } export declare function deleteBackup(httpClient: HttpClient): DeleteBackupSignature; interface DeleteBackupSignature { /** * Deletes a backup. * * The process of deleting a backup takes time. * You can check whether a backup has been deleted successfully with List Backups. * @param - ID of the backup to be deleted. */ (backupId: string): Promise; } export declare const onBackupStateChanged: EventDefinition; export declare const onBackupDeleted: EventDefinition; export declare const onBackupRestorationStateChanged: EventDefinition; export { ActionEvent, Backup, BackupDeletedEnvelope, BackupRestorationStateChangedEnvelope, BackupStateChanged, BackupStateChangedEnvelope, BaseEventMetadata, CancelBackupRequest, CancelBackupResponse, CancelGCBackupRequest, CancelGCBackupResponse, CancelGCRestorationRequest, CancelGCRestorationResponse, Collection, CreateBackupRequest, CreateBackupResponse, CreateBackupResponseNonNullableFields, CreateGCBackupRequest, CreateGCBackupResponse, DeleteAllRequest, DeleteBackupRequest, DeleteBackupResponse, DeleteExpiredBackupRecordsRequest, DeleteExpiredBackupRecordsResponse, DisableInstanceRequest, DomainEvent, DomainEventBodyOneOf, Empty, EnableInstanceRequest, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, FailRestorationRequest, FindGCBackupRequest, FindGCBackupResponse, GCBackup, GCBackupResponse, GCBackupResponseStatus, GetBackupMetadataRequest, GetBackupMetadataResponse, GetGCBackupRequest, IdentificationData, IdentificationDataIdOneOf, ListBackupsOptions, ListBackupsRequest, ListBackupsResponse, ListBackupsResponseNonNullableFields, ListRestorationsOptions, ListRestorationsRequest, ListRestorationsResponse, ListRestorationsResponseNonNullableFields, MessageEnvelope, MigrateNamespaceRequest, MigrateNamespaceResponse, MoveRequest, Paging, PagingMetadataV2, RebuildRequest, RemoveDeletedRequest, Restoration, RestorationCollection, RestorationStateChanged, RestorationStatus, RestoreBackupRequest, RestoreBackupResponse, RestoreBackupResponseNonNullableFields, RestoreDestination, RestoreGCBackupRequest, RestoreGCBackupResponse, RestoreInfo, RestorePartialBackupOptions, RestorePartialBackupRequest, Segment, Status, TakeBackupRequest, Type, UpdateBackupMetadataRequest, V2Restoration, V2RestorationStatus, WebhookIdentityType, } from './data-v2-backup-data.universal.js';