/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { Operation } from '../../../yandex/cloud/operation/operation'; export declare const protobufPackage = "yandex.cloud.operation"; export interface GetOperationRequest { /** ID of the Operation resource to return. */ operationId: string; } export interface CancelOperationRequest { /** ID of the operation to cancel. */ operationId: string; } export declare const GetOperationRequest: { encode(message: GetOperationRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetOperationRequest; fromJSON(object: any): GetOperationRequest; toJSON(message: GetOperationRequest): unknown; fromPartial, never>>(object: I): GetOperationRequest; }; export declare const CancelOperationRequest: { encode(message: CancelOperationRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CancelOperationRequest; fromJSON(object: any): CancelOperationRequest; toJSON(message: CancelOperationRequest): unknown; fromPartial, never>>(object: I): CancelOperationRequest; }; /** A set of methods for managing operations for asynchronous API requests. */ export declare const OperationServiceService: { /** Returns the specified Operation resource. */ readonly get: { readonly path: "/yandex.cloud.operation.OperationService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetOperationRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetOperationRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** * Cancels the specified operation. * * Note that currently Object Storage API does not support cancelling operations. */ readonly cancel: { readonly path: "/yandex.cloud.operation.OperationService/Cancel"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CancelOperationRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CancelOperationRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; export interface OperationServiceServer extends UntypedServiceImplementation { /** Returns the specified Operation resource. */ get: handleUnaryCall; /** * Cancels the specified operation. * * Note that currently Object Storage API does not support cancelling operations. */ cancel: handleUnaryCall; } export interface OperationServiceClient extends Client { /** Returns the specified Operation resource. */ get(request: GetOperationRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; get(request: GetOperationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; get(request: GetOperationRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Cancels the specified operation. * * Note that currently Object Storage API does not support cancelling operations. */ cancel(request: CancelOperationRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; cancel(request: CancelOperationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; cancel(request: CancelOperationRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; } export declare const OperationServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): OperationServiceClient; service: typeof OperationServiceService; }; 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 {};
= P extends Builtin ? P : P & { [K in keyof P]: Exact
; } & Record>, never>; export {};