import { BackupMetaData, BackupMetaDataCreateRequest } from '../types'; import SdkBase from './SdkBase'; import { SdkConfiguration } from './SdkConfiguration'; export declare class BackupSdk extends SdkBase { /** * Instantiate the SDK. * @param {SdkConfiguration} config - The SDK configuration. */ constructor(config: SdkConfiguration); /** * Read all backups. * @param {AbortController} [cancellationToken] - The cancellation token. * @returns {Promise} - The backups. * @throws {Error | ApiErrorResponse} Rejects if the URL is invalid or if the request fails. */ readAll(cancellationToken?: AbortController): Promise; /** * Read a backup. * @param {string} filename - The filename of the backup. * @param {AbortController} [cancellationToken] - The cancellation token. * @returns {Promise} - The backup. * @throws {Error | ApiErrorResponse} Rejects if the URL is invalid or if the request fails. */ read(filename: string, cancellationToken?: AbortController): Promise; /** * Create a backup. * @param {BackupMetaDataCreateRequest} backup - The backup to create. * @param {AbortController} [cancellationToken] - The cancellation token. * @returns {Promise} - The created backup. * @throws {Error | ApiErrorResponse} Rejects if the URL is invalid or if the request fails. */ create(backup: BackupMetaDataCreateRequest, cancellationToken?: AbortController): Promise; /** * Delete a backup. * @param {string} filename - The filename of the backup. * @param {AbortController} [cancellationToken] - The cancellation token. * @returns {Promise} - The deleted backup. * @throws {Error | ApiErrorResponse} Rejects if the URL is invalid or if the request fails. */ delete(filename: string, cancellationToken?: AbortController): Promise; /** * Backup exists. * @param {string} filename - The filename of the backup. * @param {AbortController} [cancellationToken] - The cancellation token. * @returns {Promise} - The exists backup. * @throws {Error | ApiErrorResponse} Rejects if the URL is invalid or if the request fails. */ exists(filename: string, cancellationToken?: AbortController): Promise; }