/// <reference types="node" />
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
import { Payload } from '../../../../yandex/cloud/lockbox/v1/payload';
export declare const protobufPackage = "yandex.cloud.lockbox.v1";
export interface GetPayloadRequest {
    /** ID of the secret. */
    secretId: string;
    /** Optional ID of the version. */
    versionId: string;
}
export interface GetExRequest {
    secretId: string | undefined;
    folderAndName?: FolderAndName | undefined;
    versionId: string;
}
export interface FolderAndName {
    folderId: string;
    secretName: string;
}
export interface GetExResponse {
    secretId: string;
    versionId: string;
    entries: {
        [key: string]: Buffer;
    };
}
export interface GetExResponse_EntriesEntry {
    key: string;
    value: Buffer;
}
export declare const GetPayloadRequest: {
    encode(message: GetPayloadRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): GetPayloadRequest;
    fromJSON(object: any): GetPayloadRequest;
    toJSON(message: GetPayloadRequest): unknown;
    fromPartial<I extends {
        secretId?: string | undefined;
        versionId?: string | undefined;
    } & {
        secretId?: string | undefined;
        versionId?: string | undefined;
    } & Record<Exclude<keyof I, keyof GetPayloadRequest>, never>>(object: I): GetPayloadRequest;
};
export declare const GetExRequest: {
    encode(message: GetExRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): GetExRequest;
    fromJSON(object: any): GetExRequest;
    toJSON(message: GetExRequest): unknown;
    fromPartial<I extends {
        secretId?: string | undefined;
        folderAndName?: {
            folderId?: string | undefined;
            secretName?: string | undefined;
        } | undefined;
        versionId?: string | undefined;
    } & {
        secretId?: string | undefined;
        folderAndName?: ({
            folderId?: string | undefined;
            secretName?: string | undefined;
        } & {
            folderId?: string | undefined;
            secretName?: string | undefined;
        } & Record<Exclude<keyof I["folderAndName"], keyof FolderAndName>, never>) | undefined;
        versionId?: string | undefined;
    } & Record<Exclude<keyof I, keyof GetExRequest>, never>>(object: I): GetExRequest;
};
export declare const FolderAndName: {
    encode(message: FolderAndName, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): FolderAndName;
    fromJSON(object: any): FolderAndName;
    toJSON(message: FolderAndName): unknown;
    fromPartial<I extends {
        folderId?: string | undefined;
        secretName?: string | undefined;
    } & {
        folderId?: string | undefined;
        secretName?: string | undefined;
    } & Record<Exclude<keyof I, keyof FolderAndName>, never>>(object: I): FolderAndName;
};
export declare const GetExResponse: {
    encode(message: GetExResponse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): GetExResponse;
    fromJSON(object: any): GetExResponse;
    toJSON(message: GetExResponse): unknown;
    fromPartial<I extends {
        secretId?: string | undefined;
        versionId?: string | undefined;
        entries?: {
            [x: string]: Buffer | undefined;
        } | undefined;
    } & {
        secretId?: string | undefined;
        versionId?: string | undefined;
        entries?: ({
            [x: string]: Buffer | undefined;
        } & {
            [x: string]: Buffer | undefined;
        } & Record<Exclude<keyof I["entries"], string | number>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof GetExResponse>, never>>(object: I): GetExResponse;
};
export declare const GetExResponse_EntriesEntry: {
    encode(message: GetExResponse_EntriesEntry, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): GetExResponse_EntriesEntry;
    fromJSON(object: any): GetExResponse_EntriesEntry;
    toJSON(message: GetExResponse_EntriesEntry): unknown;
    fromPartial<I extends {
        key?: string | undefined;
        value?: Buffer | undefined;
    } & {
        key?: string | undefined;
        value?: Buffer | undefined;
    } & Record<Exclude<keyof I, keyof GetExResponse_EntriesEntry>, never>>(object: I): GetExResponse_EntriesEntry;
};
/** Set of methods to access payload of secrets. */
export declare const PayloadServiceService: {
    /**
     * Returns the payload of the specified secret.
     *
     * To get the list of all available secrets, make a [SecretService.List] request.
     */
    readonly get: {
        readonly path: "/yandex.cloud.lockbox.v1.PayloadService/Get";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: GetPayloadRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => GetPayloadRequest;
        readonly responseSerialize: (value: Payload) => Buffer;
        readonly responseDeserialize: (value: Buffer) => Payload;
    };
    readonly getEx: {
        readonly path: "/yandex.cloud.lockbox.v1.PayloadService/GetEx";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: GetExRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => GetExRequest;
        readonly responseSerialize: (value: GetExResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => GetExResponse;
    };
};
export interface PayloadServiceServer extends UntypedServiceImplementation {
    /**
     * Returns the payload of the specified secret.
     *
     * To get the list of all available secrets, make a [SecretService.List] request.
     */
    get: handleUnaryCall<GetPayloadRequest, Payload>;
    getEx: handleUnaryCall<GetExRequest, GetExResponse>;
}
export interface PayloadServiceClient extends Client {
    /**
     * Returns the payload of the specified secret.
     *
     * To get the list of all available secrets, make a [SecretService.List] request.
     */
    get(request: GetPayloadRequest, callback: (error: ServiceError | null, response: Payload) => void): ClientUnaryCall;
    get(request: GetPayloadRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Payload) => void): ClientUnaryCall;
    get(request: GetPayloadRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Payload) => void): ClientUnaryCall;
    getEx(request: GetExRequest, callback: (error: ServiceError | null, response: GetExResponse) => void): ClientUnaryCall;
    getEx(request: GetExRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetExResponse) => void): ClientUnaryCall;
    getEx(request: GetExRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetExResponse) => void): ClientUnaryCall;
}
export declare const PayloadServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): PayloadServiceClient;
    service: typeof PayloadServiceService;
};
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 {};
