/// 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.asymmetricsignature"; export interface AsymmetricSignRequest { /** ID of the asymmetric KMS key to use for signature. */ keyId: string; /** * Message to sign. * Should be encoded with base64. */ message: Buffer; } export interface AsymmetricSignResponse { /** ID of the asymmetric KMS key that was used for signature. */ keyId: string; /** * Value of signature. * Signature value is produced in accordance with RFC 8017 for RSA * and is a DER-encoded object as defined by ANSI X9.62-2005 and RFC 3279 Section 2.2.3 for ECDSA. */ signature: Buffer; } export interface AsymmetricSignHashRequest { /** ID of the asymmetric KMS key to use for signature. */ keyId: string; /** * Hash value to be signed. * Should be encoded with base64. */ hash: Buffer; } export interface AsymmetricSignHashResponse { /** ID of the asymmetric KMS key that was used for signature. */ keyId: string; /** * Value of signature. * Signature value is produced in accordance with RFC 8017 for RSA * and is a DER-encoded object as defined by ANSI X9.62-2005 and RFC 3279 Section 2.2.3 for ECDSA. */ signature: 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 AsymmetricSignRequest: { encode(message: AsymmetricSignRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): AsymmetricSignRequest; fromJSON(object: any): AsymmetricSignRequest; toJSON(message: AsymmetricSignRequest): unknown; fromPartial, never>>(object: I): AsymmetricSignRequest; }; export declare const AsymmetricSignResponse: { encode(message: AsymmetricSignResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): AsymmetricSignResponse; fromJSON(object: any): AsymmetricSignResponse; toJSON(message: AsymmetricSignResponse): unknown; fromPartial, never>>(object: I): AsymmetricSignResponse; }; export declare const AsymmetricSignHashRequest: { encode(message: AsymmetricSignHashRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): AsymmetricSignHashRequest; fromJSON(object: any): AsymmetricSignHashRequest; toJSON(message: AsymmetricSignHashRequest): unknown; fromPartial, never>>(object: I): AsymmetricSignHashRequest; }; export declare const AsymmetricSignHashResponse: { encode(message: AsymmetricSignHashResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): AsymmetricSignHashResponse; fromJSON(object: any): AsymmetricSignHashResponse; toJSON(message: AsymmetricSignHashResponse): unknown; fromPartial, never>>(object: I): AsymmetricSignHashResponse; }; 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, 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, never>>(object: I): AsymmetricGetPublicKeyResponse; }; /** Set of methods that perform asymmetric signature. */ export declare const AsymmetricSignatureCryptoServiceService: { /** Signs data specified KMS key. */ readonly sign: { readonly path: "/yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureCryptoService/Sign"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: AsymmetricSignRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => AsymmetricSignRequest; readonly responseSerialize: (value: AsymmetricSignResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => AsymmetricSignResponse; }; /** Signs hash value specified KMS key. */ readonly signHash: { readonly path: "/yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureCryptoService/SignHash"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: AsymmetricSignHashRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => AsymmetricSignHashRequest; readonly responseSerialize: (value: AsymmetricSignHashResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => AsymmetricSignHashResponse; }; /** Gets value of public key. */ readonly getPublicKey: { readonly path: "/yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureCryptoService/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 AsymmetricSignatureCryptoServiceServer extends UntypedServiceImplementation { /** Signs data specified KMS key. */ sign: handleUnaryCall; /** Signs hash value specified KMS key. */ signHash: handleUnaryCall; /** Gets value of public key. */ getPublicKey: handleUnaryCall; } export interface AsymmetricSignatureCryptoServiceClient extends Client { /** Signs data specified KMS key. */ sign(request: AsymmetricSignRequest, callback: (error: ServiceError | null, response: AsymmetricSignResponse) => void): ClientUnaryCall; sign(request: AsymmetricSignRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AsymmetricSignResponse) => void): ClientUnaryCall; sign(request: AsymmetricSignRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: AsymmetricSignResponse) => void): ClientUnaryCall; /** Signs hash value specified KMS key. */ signHash(request: AsymmetricSignHashRequest, callback: (error: ServiceError | null, response: AsymmetricSignHashResponse) => void): ClientUnaryCall; signHash(request: AsymmetricSignHashRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AsymmetricSignHashResponse) => void): ClientUnaryCall; signHash(request: AsymmetricSignHashRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: AsymmetricSignHashResponse) => 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, callback: (error: ServiceError | null, response: AsymmetricGetPublicKeyResponse) => void): ClientUnaryCall; } export declare const AsymmetricSignatureCryptoServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): AsymmetricSignatureCryptoServiceClient; service: typeof AsymmetricSignatureCryptoServiceService; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {};