/// <reference types="node" />
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
import { Artifact } from '../../../../yandex/cloud/cloudregistry/v1/artifact';
import { Operation } from '../../../../yandex/cloud/operation/operation';
export declare const protobufPackage = "yandex.cloud.cloudregistry.v1";
export interface GetArtifactRequest {
    /** ID of the artifact resource to return. */
    artifactId: string;
}
export interface DeleteArtifactRequest {
    /** ID of the artifact to delete. */
    artifactId: string;
}
export interface DeleteArtifactMetadata {
    /** ID of the artifact to delete. */
    artifactId: string;
}
export declare const GetArtifactRequest: {
    encode(message: GetArtifactRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): GetArtifactRequest;
    fromJSON(object: any): GetArtifactRequest;
    toJSON(message: GetArtifactRequest): unknown;
    fromPartial<I extends {
        artifactId?: string | undefined;
    } & {
        artifactId?: string | undefined;
    } & Record<Exclude<keyof I, "artifactId">, never>>(object: I): GetArtifactRequest;
};
export declare const DeleteArtifactRequest: {
    encode(message: DeleteArtifactRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): DeleteArtifactRequest;
    fromJSON(object: any): DeleteArtifactRequest;
    toJSON(message: DeleteArtifactRequest): unknown;
    fromPartial<I extends {
        artifactId?: string | undefined;
    } & {
        artifactId?: string | undefined;
    } & Record<Exclude<keyof I, "artifactId">, never>>(object: I): DeleteArtifactRequest;
};
export declare const DeleteArtifactMetadata: {
    encode(message: DeleteArtifactMetadata, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): DeleteArtifactMetadata;
    fromJSON(object: any): DeleteArtifactMetadata;
    toJSON(message: DeleteArtifactMetadata): unknown;
    fromPartial<I extends {
        artifactId?: string | undefined;
    } & {
        artifactId?: string | undefined;
    } & Record<Exclude<keyof I, "artifactId">, never>>(object: I): DeleteArtifactMetadata;
};
/** A set of methods for managing Artifacts. */
export declare const ArtifactServiceService: {
    /**
     * Returns the specified artifact resource.
     *
     * To get the list of available artifact resources, make [RegistryService.ListArtifacts] method call.
     */
    readonly get: {
        readonly path: "/yandex.cloud.cloudregistry.v1.ArtifactService/Get";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: GetArtifactRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => GetArtifactRequest;
        readonly responseSerialize: (value: Artifact) => Buffer;
        readonly responseDeserialize: (value: Buffer) => Artifact;
    };
    /** Deletes the specified artifact. */
    readonly delete: {
        readonly path: "/yandex.cloud.cloudregistry.v1.ArtifactService/Delete";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: DeleteArtifactRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => DeleteArtifactRequest;
        readonly responseSerialize: (value: Operation) => Buffer;
        readonly responseDeserialize: (value: Buffer) => Operation;
    };
};
export interface ArtifactServiceServer extends UntypedServiceImplementation {
    /**
     * Returns the specified artifact resource.
     *
     * To get the list of available artifact resources, make [RegistryService.ListArtifacts] method call.
     */
    get: handleUnaryCall<GetArtifactRequest, Artifact>;
    /** Deletes the specified artifact. */
    delete: handleUnaryCall<DeleteArtifactRequest, Operation>;
}
export interface ArtifactServiceClient extends Client {
    /**
     * Returns the specified artifact resource.
     *
     * To get the list of available artifact resources, make [RegistryService.ListArtifacts] method call.
     */
    get(request: GetArtifactRequest, callback: (error: ServiceError | null, response: Artifact) => void): ClientUnaryCall;
    get(request: GetArtifactRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Artifact) => void): ClientUnaryCall;
    get(request: GetArtifactRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Artifact) => void): ClientUnaryCall;
    /** Deletes the specified artifact. */
    delete(request: DeleteArtifactRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
    delete(request: DeleteArtifactRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
    delete(request: DeleteArtifactRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
}
export declare const ArtifactServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): ArtifactServiceClient;
    service: typeof ArtifactServiceService;
};
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 {};
