/// <reference types="node" />
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
import { Image } from '../../../../yandex/cloud/containerregistry/v1/image';
import { Operation } from '../../../../yandex/cloud/operation/operation';
export declare const protobufPackage = "yandex.cloud.containerregistry.v1";
export interface ListImagesRequest {
    /**
     * ID of the registry to list Docker images in.
     *
     * [registry_id] is ignored if a [ListImagesRequest.repository_name] is specified in the request.
     *
     * To get the registry ID use a [RegistryService.List] request.
     */
    registryId: string;
    /**
     * Name of the repository to list Docker images in.
     *
     * To get the repository name use a [RepositoryService.List] request.
     */
    repositoryName: string;
    /**
     * ID of the folder to list Docker images in.
     *
     * [folder_id] is ignored if a [ListImagesRequest.repository_name] or a [ListImagesRequest.registry_id] are specified in the request.
     *
     * To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     */
    folderId: string;
    /**
     * The maximum number of results per page to return. If the number of available
     * results is larger than [page_size],
     * the service returns a [ListImagesResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     */
    pageSize: number;
    /**
     * Page token. To get the next page of results, set [page_token] to the
     * [ListImagesResponse.next_page_token] returned by a previous list request.
     */
    pageToken: string;
    /**
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently you can use filtering only on [Image.name] field.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be a maximum of 256 characters long and match the regular expression `[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))`.
     */
    filter: string;
    orderBy: string;
}
export interface ListImagesResponse {
    /** List of Image resources. */
    images: Image[];
    /**
     * This token allows you to get the next page of results for list requests. If the number of results
     * is larger than [ListImagesRequest.page_size], use
     * the [next_page_token] as the value
     * for the [ListImagesRequest.page_token] query parameter
     * in the next list request. Each subsequent list request will have its own
     * [next_page_token] to continue paging through the results.
     */
    nextPageToken: string;
}
export interface GetImageRequest {
    /**
     * ID of the Docker image resource to return.
     *
     * To get the Docker image ID use a [ImageService.List] request.
     */
    imageId: string;
}
export interface DeleteImageRequest {
    /**
     * ID of the Docker image to delete.
     *
     * To get Docker image ID use a [ImageService.List] request.
     */
    imageId: string;
}
export interface DeleteImageMetadata {
    /** ID of the Docker image that is being deleted. */
    imageId: string;
}
export declare const ListImagesRequest: {
    encode(message: ListImagesRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListImagesRequest;
    fromJSON(object: any): ListImagesRequest;
    toJSON(message: ListImagesRequest): unknown;
    fromPartial<I extends {
        registryId?: string | undefined;
        repositoryName?: string | undefined;
        folderId?: string | undefined;
        pageSize?: number | undefined;
        pageToken?: string | undefined;
        filter?: string | undefined;
        orderBy?: string | undefined;
    } & {
        registryId?: string | undefined;
        repositoryName?: string | undefined;
        folderId?: string | undefined;
        pageSize?: number | undefined;
        pageToken?: string | undefined;
        filter?: string | undefined;
        orderBy?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListImagesRequest>, never>>(object: I): ListImagesRequest;
};
export declare const ListImagesResponse: {
    encode(message: ListImagesResponse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListImagesResponse;
    fromJSON(object: any): ListImagesResponse;
    toJSON(message: ListImagesResponse): unknown;
    fromPartial<I extends {
        images?: {
            id?: string | undefined;
            name?: string | undefined;
            digest?: string | undefined;
            compressedSize?: number | undefined;
            config?: {
                id?: string | undefined;
                digest?: string | undefined;
                size?: number | undefined;
                urls?: string[] | undefined;
            } | undefined;
            layers?: {
                id?: string | undefined;
                digest?: string | undefined;
                size?: number | undefined;
                urls?: string[] | undefined;
            }[] | undefined;
            tags?: string[] | undefined;
            createdAt?: Date | undefined;
        }[] | undefined;
        nextPageToken?: string | undefined;
    } & {
        images?: ({
            id?: string | undefined;
            name?: string | undefined;
            digest?: string | undefined;
            compressedSize?: number | undefined;
            config?: {
                id?: string | undefined;
                digest?: string | undefined;
                size?: number | undefined;
                urls?: string[] | undefined;
            } | undefined;
            layers?: {
                id?: string | undefined;
                digest?: string | undefined;
                size?: number | undefined;
                urls?: string[] | undefined;
            }[] | undefined;
            tags?: string[] | undefined;
            createdAt?: Date | undefined;
        }[] & ({
            id?: string | undefined;
            name?: string | undefined;
            digest?: string | undefined;
            compressedSize?: number | undefined;
            config?: {
                id?: string | undefined;
                digest?: string | undefined;
                size?: number | undefined;
                urls?: string[] | undefined;
            } | undefined;
            layers?: {
                id?: string | undefined;
                digest?: string | undefined;
                size?: number | undefined;
                urls?: string[] | undefined;
            }[] | undefined;
            tags?: string[] | undefined;
            createdAt?: Date | undefined;
        } & {
            id?: string | undefined;
            name?: string | undefined;
            digest?: string | undefined;
            compressedSize?: number | undefined;
            config?: ({
                id?: string | undefined;
                digest?: string | undefined;
                size?: number | undefined;
                urls?: string[] | undefined;
            } & {
                id?: string | undefined;
                digest?: string | undefined;
                size?: number | undefined;
                urls?: (string[] & string[] & Record<Exclude<keyof I["images"][number]["config"]["urls"], keyof string[]>, never>) | undefined;
            } & Record<Exclude<keyof I["images"][number]["config"], keyof import("./blob").Blob>, never>) | undefined;
            layers?: ({
                id?: string | undefined;
                digest?: string | undefined;
                size?: number | undefined;
                urls?: string[] | undefined;
            }[] & ({
                id?: string | undefined;
                digest?: string | undefined;
                size?: number | undefined;
                urls?: string[] | undefined;
            } & {
                id?: string | undefined;
                digest?: string | undefined;
                size?: number | undefined;
                urls?: (string[] & string[] & Record<Exclude<keyof I["images"][number]["layers"][number]["urls"], keyof string[]>, never>) | undefined;
            } & Record<Exclude<keyof I["images"][number]["layers"][number], keyof import("./blob").Blob>, never>)[] & Record<Exclude<keyof I["images"][number]["layers"], keyof {
                id?: string | undefined;
                digest?: string | undefined;
                size?: number | undefined;
                urls?: string[] | undefined;
            }[]>, never>) | undefined;
            tags?: (string[] & string[] & Record<Exclude<keyof I["images"][number]["tags"], keyof string[]>, never>) | undefined;
            createdAt?: Date | undefined;
        } & Record<Exclude<keyof I["images"][number], keyof Image>, never>)[] & Record<Exclude<keyof I["images"], keyof {
            id?: string | undefined;
            name?: string | undefined;
            digest?: string | undefined;
            compressedSize?: number | undefined;
            config?: {
                id?: string | undefined;
                digest?: string | undefined;
                size?: number | undefined;
                urls?: string[] | undefined;
            } | undefined;
            layers?: {
                id?: string | undefined;
                digest?: string | undefined;
                size?: number | undefined;
                urls?: string[] | undefined;
            }[] | undefined;
            tags?: string[] | undefined;
            createdAt?: Date | undefined;
        }[]>, never>) | undefined;
        nextPageToken?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListImagesResponse>, never>>(object: I): ListImagesResponse;
};
export declare const GetImageRequest: {
    encode(message: GetImageRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): GetImageRequest;
    fromJSON(object: any): GetImageRequest;
    toJSON(message: GetImageRequest): unknown;
    fromPartial<I extends {
        imageId?: string | undefined;
    } & {
        imageId?: string | undefined;
    } & Record<Exclude<keyof I, "imageId">, never>>(object: I): GetImageRequest;
};
export declare const DeleteImageRequest: {
    encode(message: DeleteImageRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): DeleteImageRequest;
    fromJSON(object: any): DeleteImageRequest;
    toJSON(message: DeleteImageRequest): unknown;
    fromPartial<I extends {
        imageId?: string | undefined;
    } & {
        imageId?: string | undefined;
    } & Record<Exclude<keyof I, "imageId">, never>>(object: I): DeleteImageRequest;
};
export declare const DeleteImageMetadata: {
    encode(message: DeleteImageMetadata, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): DeleteImageMetadata;
    fromJSON(object: any): DeleteImageMetadata;
    toJSON(message: DeleteImageMetadata): unknown;
    fromPartial<I extends {
        imageId?: string | undefined;
    } & {
        imageId?: string | undefined;
    } & Record<Exclude<keyof I, "imageId">, never>>(object: I): DeleteImageMetadata;
};
/** A set of methods for managing Image resources. */
export declare const ImageServiceService: {
    /** Retrieves the list of Image resources in the specified registry or repository. */
    readonly list: {
        readonly path: "/yandex.cloud.containerregistry.v1.ImageService/List";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: ListImagesRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => ListImagesRequest;
        readonly responseSerialize: (value: ListImagesResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => ListImagesResponse;
    };
    /**
     * Returns the specified Image resource.
     *
     * To get the list of available Image resources, make a [List] request.
     */
    readonly get: {
        readonly path: "/yandex.cloud.containerregistry.v1.ImageService/Get";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: GetImageRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => GetImageRequest;
        readonly responseSerialize: (value: Image) => Buffer;
        readonly responseDeserialize: (value: Buffer) => Image;
    };
    /** Deletes the specified Docker image. */
    readonly delete: {
        readonly path: "/yandex.cloud.containerregistry.v1.ImageService/Delete";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: DeleteImageRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => DeleteImageRequest;
        readonly responseSerialize: (value: Operation) => Buffer;
        readonly responseDeserialize: (value: Buffer) => Operation;
    };
};
export interface ImageServiceServer extends UntypedServiceImplementation {
    /** Retrieves the list of Image resources in the specified registry or repository. */
    list: handleUnaryCall<ListImagesRequest, ListImagesResponse>;
    /**
     * Returns the specified Image resource.
     *
     * To get the list of available Image resources, make a [List] request.
     */
    get: handleUnaryCall<GetImageRequest, Image>;
    /** Deletes the specified Docker image. */
    delete: handleUnaryCall<DeleteImageRequest, Operation>;
}
export interface ImageServiceClient extends Client {
    /** Retrieves the list of Image resources in the specified registry or repository. */
    list(request: ListImagesRequest, callback: (error: ServiceError | null, response: ListImagesResponse) => void): ClientUnaryCall;
    list(request: ListImagesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListImagesResponse) => void): ClientUnaryCall;
    list(request: ListImagesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListImagesResponse) => void): ClientUnaryCall;
    /**
     * Returns the specified Image resource.
     *
     * To get the list of available Image resources, make a [List] request.
     */
    get(request: GetImageRequest, callback: (error: ServiceError | null, response: Image) => void): ClientUnaryCall;
    get(request: GetImageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Image) => void): ClientUnaryCall;
    get(request: GetImageRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Image) => void): ClientUnaryCall;
    /** Deletes the specified Docker image. */
    delete(request: DeleteImageRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
    delete(request: DeleteImageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
    delete(request: DeleteImageRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
}
export declare const ImageServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): ImageServiceClient;
    service: typeof ImageServiceService;
};
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 {};
