/// <reference types="node" />
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
import { Backup } from '../../../../../yandex/cloud/mdb/redis/v1/backup';
import { Operation } from '../../../../../yandex/cloud/operation/operation';
export declare const protobufPackage = "yandex.cloud.mdb.redis.v1";
export interface GetBackupRequest {
    /**
     * ID of the Redis backup to return.
     * To get the backup ID, use a [ClusterService.ListBackups] request.
     */
    backupId: string;
}
export interface ListBackupsRequest {
    /**
     * ID of the folder to list backups in.
     * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     */
    folderId: string;
    /**
     * The maximum number of results per page to return. If the number of available
     * results is larger than [page_size], the service returns a [ListBackupsResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     */
    pageSize: number;
    /**
     * Page token. To get the next page of results, set [page_token] to the [ListBackupsResponse.next_page_token]
     * returned by the previous list request.
     */
    pageToken: string;
}
export interface ListBackupsResponse {
    /** Requested list of backups. */
    backups: Backup[];
    /**
     * This token allows you to get the next page of results for list requests. If the number of results
     * is larger than [ListBackupsRequest.page_size], use the [next_page_token] as the value
     * for the [ListBackupsRequest.page_token] parameter in the next list request. Each subsequent
     * list request will have its own [next_page_token] to continue paging through the results.
     */
    nextPageToken: string;
}
export interface DeleteBackupRequest {
    /** Required. ID of the backup to delete. */
    backupId: string;
}
export interface DeleteBackupMetadata {
    /** Required. ID of the deleting Redis backup. */
    backupId: string;
}
export declare const GetBackupRequest: {
    encode(message: GetBackupRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): GetBackupRequest;
    fromJSON(object: any): GetBackupRequest;
    toJSON(message: GetBackupRequest): unknown;
    fromPartial<I extends {
        backupId?: string | undefined;
    } & {
        backupId?: string | undefined;
    } & Record<Exclude<keyof I, "backupId">, never>>(object: I): GetBackupRequest;
};
export declare const ListBackupsRequest: {
    encode(message: ListBackupsRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListBackupsRequest;
    fromJSON(object: any): ListBackupsRequest;
    toJSON(message: ListBackupsRequest): unknown;
    fromPartial<I extends {
        folderId?: string | undefined;
        pageSize?: number | undefined;
        pageToken?: string | undefined;
    } & {
        folderId?: string | undefined;
        pageSize?: number | undefined;
        pageToken?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListBackupsRequest>, never>>(object: I): ListBackupsRequest;
};
export declare const ListBackupsResponse: {
    encode(message: ListBackupsResponse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListBackupsResponse;
    fromJSON(object: any): ListBackupsResponse;
    toJSON(message: ListBackupsResponse): unknown;
    fromPartial<I extends {
        backups?: {
            id?: string | undefined;
            folderId?: string | undefined;
            createdAt?: Date | undefined;
            sourceClusterId?: string | undefined;
            startedAt?: Date | undefined;
            sourceShardNames?: string[] | undefined;
            type?: import("../../../../../yandex/cloud/mdb/redis/v1/backup").Backup_BackupType | undefined;
        }[] | undefined;
        nextPageToken?: string | undefined;
    } & {
        backups?: ({
            id?: string | undefined;
            folderId?: string | undefined;
            createdAt?: Date | undefined;
            sourceClusterId?: string | undefined;
            startedAt?: Date | undefined;
            sourceShardNames?: string[] | undefined;
            type?: import("../../../../../yandex/cloud/mdb/redis/v1/backup").Backup_BackupType | undefined;
        }[] & ({
            id?: string | undefined;
            folderId?: string | undefined;
            createdAt?: Date | undefined;
            sourceClusterId?: string | undefined;
            startedAt?: Date | undefined;
            sourceShardNames?: string[] | undefined;
            type?: import("../../../../../yandex/cloud/mdb/redis/v1/backup").Backup_BackupType | undefined;
        } & {
            id?: string | undefined;
            folderId?: string | undefined;
            createdAt?: Date | undefined;
            sourceClusterId?: string | undefined;
            startedAt?: Date | undefined;
            sourceShardNames?: (string[] & string[] & Record<Exclude<keyof I["backups"][number]["sourceShardNames"], keyof string[]>, never>) | undefined;
            type?: import("../../../../../yandex/cloud/mdb/redis/v1/backup").Backup_BackupType | undefined;
        } & Record<Exclude<keyof I["backups"][number], keyof Backup>, never>)[] & Record<Exclude<keyof I["backups"], keyof {
            id?: string | undefined;
            folderId?: string | undefined;
            createdAt?: Date | undefined;
            sourceClusterId?: string | undefined;
            startedAt?: Date | undefined;
            sourceShardNames?: string[] | undefined;
            type?: import("../../../../../yandex/cloud/mdb/redis/v1/backup").Backup_BackupType | undefined;
        }[]>, never>) | undefined;
        nextPageToken?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListBackupsResponse>, never>>(object: I): ListBackupsResponse;
};
export declare const DeleteBackupRequest: {
    encode(message: DeleteBackupRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): DeleteBackupRequest;
    fromJSON(object: any): DeleteBackupRequest;
    toJSON(message: DeleteBackupRequest): unknown;
    fromPartial<I extends {
        backupId?: string | undefined;
    } & {
        backupId?: string | undefined;
    } & Record<Exclude<keyof I, "backupId">, never>>(object: I): DeleteBackupRequest;
};
export declare const DeleteBackupMetadata: {
    encode(message: DeleteBackupMetadata, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): DeleteBackupMetadata;
    fromJSON(object: any): DeleteBackupMetadata;
    toJSON(message: DeleteBackupMetadata): unknown;
    fromPartial<I extends {
        backupId?: string | undefined;
    } & {
        backupId?: string | undefined;
    } & Record<Exclude<keyof I, "backupId">, never>>(object: I): DeleteBackupMetadata;
};
/** A set of methods for managing Redis backups. */
export declare const BackupServiceService: {
    /**
     * Returns the specified Redis backup.
     *
     * To get the list of available Redis backups, make a [List] request.
     */
    readonly get: {
        readonly path: "/yandex.cloud.mdb.redis.v1.BackupService/Get";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: GetBackupRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => GetBackupRequest;
        readonly responseSerialize: (value: Backup) => Buffer;
        readonly responseDeserialize: (value: Buffer) => Backup;
    };
    /** Retrieves the list of Redis backups available for the specified folder. */
    readonly list: {
        readonly path: "/yandex.cloud.mdb.redis.v1.BackupService/List";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: ListBackupsRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => ListBackupsRequest;
        readonly responseSerialize: (value: ListBackupsResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => ListBackupsResponse;
    };
    /** Returns the list of available backups for the specified Redis cluster. */
    readonly delete: {
        readonly path: "/yandex.cloud.mdb.redis.v1.BackupService/Delete";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: DeleteBackupRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => DeleteBackupRequest;
        readonly responseSerialize: (value: Operation) => Buffer;
        readonly responseDeserialize: (value: Buffer) => Operation;
    };
};
export interface BackupServiceServer extends UntypedServiceImplementation {
    /**
     * Returns the specified Redis backup.
     *
     * To get the list of available Redis backups, make a [List] request.
     */
    get: handleUnaryCall<GetBackupRequest, Backup>;
    /** Retrieves the list of Redis backups available for the specified folder. */
    list: handleUnaryCall<ListBackupsRequest, ListBackupsResponse>;
    /** Returns the list of available backups for the specified Redis cluster. */
    delete: handleUnaryCall<DeleteBackupRequest, Operation>;
}
export interface BackupServiceClient extends Client {
    /**
     * Returns the specified Redis backup.
     *
     * To get the list of available Redis backups, make a [List] request.
     */
    get(request: GetBackupRequest, callback: (error: ServiceError | null, response: Backup) => void): ClientUnaryCall;
    get(request: GetBackupRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Backup) => void): ClientUnaryCall;
    get(request: GetBackupRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Backup) => void): ClientUnaryCall;
    /** Retrieves the list of Redis backups available for the specified folder. */
    list(request: ListBackupsRequest, callback: (error: ServiceError | null, response: ListBackupsResponse) => void): ClientUnaryCall;
    list(request: ListBackupsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListBackupsResponse) => void): ClientUnaryCall;
    list(request: ListBackupsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListBackupsResponse) => void): ClientUnaryCall;
    /** Returns the list of available backups for the specified Redis cluster. */
    delete(request: DeleteBackupRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
    delete(request: DeleteBackupRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
    delete(request: DeleteBackupRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
}
export declare const BackupServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): BackupServiceClient;
    service: typeof BackupServiceService;
};
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
    [K in keyof T]?: DeepPartial<T[K]>;
} : Partial<T>;
type KeysOfUnion<T> = T extends T ? keyof T : never;
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
    [K in keyof P]: Exact<P[K], I[K]>;
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
export {};
