/// <reference types="node" />
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
export declare const protobufPackage = "yandex.cloud.kms.v1.asymmetricencryption";
export interface AsymmetricDecryptRequest {
    /** ID of the asymmetric KMS key to use for decryption. */
    keyId: string;
    /**
     * Ciphertext to be decrypted.
     * Should be encoded with base64.
     */
    ciphertext: Buffer;
}
export interface AsymmetricDecryptResponse {
    /** ID of the asymmetric KMS key that was used for decryption. */
    keyId: string;
    /** Decrypted plaintext. */
    plaintext: Buffer;
}
export interface AsymmetricGetPublicKeyRequest {
    /** ID of the asymmetric KMS key to be used for public key retrieval. */
    keyId: string;
}
export interface AsymmetricGetPublicKeyResponse {
    /** ID of the asymmetric KMS key to get public key of. */
    keyId: string;
    /**
     * Public key value.
     * The value is a PEM-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI),
     * as defined in RFC 5280.
     */
    publicKey: string;
}
export declare const AsymmetricDecryptRequest: {
    encode(message: AsymmetricDecryptRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): AsymmetricDecryptRequest;
    fromJSON(object: any): AsymmetricDecryptRequest;
    toJSON(message: AsymmetricDecryptRequest): unknown;
    fromPartial<I extends {
        keyId?: string | undefined;
        ciphertext?: Buffer | undefined;
    } & {
        keyId?: string | undefined;
        ciphertext?: Buffer | undefined;
    } & Record<Exclude<keyof I, keyof AsymmetricDecryptRequest>, never>>(object: I): AsymmetricDecryptRequest;
};
export declare const AsymmetricDecryptResponse: {
    encode(message: AsymmetricDecryptResponse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): AsymmetricDecryptResponse;
    fromJSON(object: any): AsymmetricDecryptResponse;
    toJSON(message: AsymmetricDecryptResponse): unknown;
    fromPartial<I extends {
        keyId?: string | undefined;
        plaintext?: Buffer | undefined;
    } & {
        keyId?: string | undefined;
        plaintext?: Buffer | undefined;
    } & Record<Exclude<keyof I, keyof AsymmetricDecryptResponse>, never>>(object: I): AsymmetricDecryptResponse;
};
export declare const AsymmetricGetPublicKeyRequest: {
    encode(message: AsymmetricGetPublicKeyRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): AsymmetricGetPublicKeyRequest;
    fromJSON(object: any): AsymmetricGetPublicKeyRequest;
    toJSON(message: AsymmetricGetPublicKeyRequest): unknown;
    fromPartial<I extends {
        keyId?: string | undefined;
    } & {
        keyId?: string | undefined;
    } & Record<Exclude<keyof I, "keyId">, never>>(object: I): AsymmetricGetPublicKeyRequest;
};
export declare const AsymmetricGetPublicKeyResponse: {
    encode(message: AsymmetricGetPublicKeyResponse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): AsymmetricGetPublicKeyResponse;
    fromJSON(object: any): AsymmetricGetPublicKeyResponse;
    toJSON(message: AsymmetricGetPublicKeyResponse): unknown;
    fromPartial<I extends {
        keyId?: string | undefined;
        publicKey?: string | undefined;
    } & {
        keyId?: string | undefined;
        publicKey?: string | undefined;
    } & Record<Exclude<keyof I, keyof AsymmetricGetPublicKeyResponse>, never>>(object: I): AsymmetricGetPublicKeyResponse;
};
/** Set of methods that perform asymmetric decryption. */
export declare const AsymmetricEncryptionCryptoServiceService: {
    /** Decrypts the given ciphertext with the specified key. */
    readonly decrypt: {
        readonly path: "/yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionCryptoService/Decrypt";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: AsymmetricDecryptRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => AsymmetricDecryptRequest;
        readonly responseSerialize: (value: AsymmetricDecryptResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => AsymmetricDecryptResponse;
    };
    /** Gets value of public key. */
    readonly getPublicKey: {
        readonly path: "/yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionCryptoService/GetPublicKey";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: AsymmetricGetPublicKeyRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => AsymmetricGetPublicKeyRequest;
        readonly responseSerialize: (value: AsymmetricGetPublicKeyResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => AsymmetricGetPublicKeyResponse;
    };
};
export interface AsymmetricEncryptionCryptoServiceServer extends UntypedServiceImplementation {
    /** Decrypts the given ciphertext with the specified key. */
    decrypt: handleUnaryCall<AsymmetricDecryptRequest, AsymmetricDecryptResponse>;
    /** Gets value of public key. */
    getPublicKey: handleUnaryCall<AsymmetricGetPublicKeyRequest, AsymmetricGetPublicKeyResponse>;
}
export interface AsymmetricEncryptionCryptoServiceClient extends Client {
    /** Decrypts the given ciphertext with the specified key. */
    decrypt(request: AsymmetricDecryptRequest, callback: (error: ServiceError | null, response: AsymmetricDecryptResponse) => void): ClientUnaryCall;
    decrypt(request: AsymmetricDecryptRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AsymmetricDecryptResponse) => void): ClientUnaryCall;
    decrypt(request: AsymmetricDecryptRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: AsymmetricDecryptResponse) => void): ClientUnaryCall;
    /** Gets value of public key. */
    getPublicKey(request: AsymmetricGetPublicKeyRequest, callback: (error: ServiceError | null, response: AsymmetricGetPublicKeyResponse) => void): ClientUnaryCall;
    getPublicKey(request: AsymmetricGetPublicKeyRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AsymmetricGetPublicKeyResponse) => void): ClientUnaryCall;
    getPublicKey(request: AsymmetricGetPublicKeyRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: AsymmetricGetPublicKeyResponse) => void): ClientUnaryCall;
}
export declare const AsymmetricEncryptionCryptoServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): AsymmetricEncryptionCryptoServiceClient;
    service: typeof AsymmetricEncryptionCryptoServiceService;
};
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 {};
