import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { CreateBackupResponse, ListBackupsOptions, ListBackupsResponse, RestoreBackupResponse, RestorationCollection, RestorePartialBackupResponse, ListRestorationsOptions, ListRestorationsResponse, BackupStateChangedEnvelope, BackupRestorationStateChangedEnvelope } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, Backup, BackupStateChanged, BaseEventMetadata, CancelBackupRequest, CancelBackupResponse, Collection, CreateBackupRequest, DeleteAllRequest, DeleteBackupRequest, DeleteBackupResponse, DisableInstanceRequest, DomainEvent, DomainEventBodyOneOf, Empty, EnableInstanceRequest, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, FailRestorationRequest, GetBackupMetadataRequest, GetBackupMetadataResponse, IdentificationData, IdentificationDataIdOneOf, ListBackupsRequest, ListRestorationsRequest, MessageEnvelope, MigrateNamespaceRequest, MigrateNamespaceResponse, MoveRequest, Paging, PagingMetadataV2, RebuildRequest, RemoveDeletedRequest, Restoration, RestorationStateChanged, RestorationStatus, RestorationStatusWithLiterals, RestoreBackupRequest, RestoreDestination, RestoreInfo, RestorePartialBackupRequest, Status, StatusWithLiterals, TakeBackupRequest, Type, TypeWithLiterals, UpdateBackupMetadataRequest, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js'; declare function createBackup$1(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>; } declare function listBackups$1(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): Promise>; } declare function restoreBackup$1(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>; } declare function restorePartialBackup$1(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 - **Required.** Collections to be restored. * * Note: If collections have a multi-reference relationship, * the preexisting references will be restored if at least one of those collections are restored. */ (backupId: string, restorationCollections: RestorationCollection[]): Promise>; } declare function listRestorations$1(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): Promise>; } declare function deleteBackup$1(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; } declare const onBackupStateChanged$1: EventDefinition; declare const onBackupRestorationStateChanged$1: EventDefinition; declare const createBackup: MaybeContext & typeof createBackup$1>; declare const listBackups: MaybeContext & typeof listBackups$1>; declare const restoreBackup: MaybeContext & typeof restoreBackup$1>; declare const restorePartialBackup: MaybeContext & typeof restorePartialBackup$1>; declare const listRestorations: MaybeContext & typeof listRestorations$1>; declare const deleteBackup: MaybeContext & typeof deleteBackup$1>; /** * Triggered when a backup's status is changed. This includes when a backup is created and its status is set to `PENDING`. */ declare const onBackupStateChanged: BuildEventDefinition & typeof onBackupStateChanged$1; /** * Triggered when a restoration's status is changed. This includes when a new restoration is initiated and its status is `PENDING`. */ declare const onBackupRestorationStateChanged: BuildEventDefinition & typeof onBackupRestorationStateChanged$1; export { BackupRestorationStateChangedEnvelope, BackupStateChangedEnvelope, CreateBackupResponse, ListBackupsOptions, ListBackupsResponse, ListRestorationsOptions, ListRestorationsResponse, RestorationCollection, RestoreBackupResponse, RestorePartialBackupResponse, createBackup, deleteBackup, listBackups, listRestorations, onBackupRestorationStateChanged, onBackupStateChanged, restoreBackup, restorePartialBackup };