/// <reference types="node" />
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
import { Zone } from '../../../../yandex/cloud/compute/v1/zone';
export declare const protobufPackage = "yandex.cloud.compute.v1";
export interface ListZonesRequest {
    /**
     * The maximum number of results per page to return. If the number of available
     * results is larger than [page_size],
     * the service returns a [ListZonesResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     */
    pageSize: number;
    /**
     * Page token. To get the next page of results, set [page_token] to the
     * [ListZonesResponse.next_page_token] returned by a previous list request.
     */
    pageToken: string;
}
export interface ListZonesResponse {
    /** List of availability zones. */
    zones: Zone[];
    /**
     * This token allows you to get the next page of results for list requests. If the number of results
     * is larger than [ListZonesRequest.page_size], use
     * the [ListZonesRequest.page_token] as the value
     * for the [ListZonesRequest.page_token] query parameter
     * in the next list request. Subsequent list requests will have their own
     * [ListZonesRequest.page_token] to continue paging through the results.
     */
    nextPageToken: string;
}
export interface GetZoneRequest {
    /** ID of the availability zone to return information about. */
    zoneId: string;
}
export declare const ListZonesRequest: {
    encode(message: ListZonesRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListZonesRequest;
    fromJSON(object: any): ListZonesRequest;
    toJSON(message: ListZonesRequest): unknown;
    fromPartial<I extends {
        pageSize?: number | undefined;
        pageToken?: string | undefined;
    } & {
        pageSize?: number | undefined;
        pageToken?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListZonesRequest>, never>>(object: I): ListZonesRequest;
};
export declare const ListZonesResponse: {
    encode(message: ListZonesResponse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListZonesResponse;
    fromJSON(object: any): ListZonesResponse;
    toJSON(message: ListZonesResponse): unknown;
    fromPartial<I extends {
        zones?: {
            id?: string | undefined;
            regionId?: string | undefined;
            status?: import("../../../../yandex/cloud/compute/v1/zone").Zone_Status | undefined;
        }[] | undefined;
        nextPageToken?: string | undefined;
    } & {
        zones?: ({
            id?: string | undefined;
            regionId?: string | undefined;
            status?: import("../../../../yandex/cloud/compute/v1/zone").Zone_Status | undefined;
        }[] & ({
            id?: string | undefined;
            regionId?: string | undefined;
            status?: import("../../../../yandex/cloud/compute/v1/zone").Zone_Status | undefined;
        } & {
            id?: string | undefined;
            regionId?: string | undefined;
            status?: import("../../../../yandex/cloud/compute/v1/zone").Zone_Status | undefined;
        } & Record<Exclude<keyof I["zones"][number], keyof Zone>, never>)[] & Record<Exclude<keyof I["zones"], keyof {
            id?: string | undefined;
            regionId?: string | undefined;
            status?: import("../../../../yandex/cloud/compute/v1/zone").Zone_Status | undefined;
        }[]>, never>) | undefined;
        nextPageToken?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListZonesResponse>, never>>(object: I): ListZonesResponse;
};
export declare const GetZoneRequest: {
    encode(message: GetZoneRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): GetZoneRequest;
    fromJSON(object: any): GetZoneRequest;
    toJSON(message: GetZoneRequest): unknown;
    fromPartial<I extends {
        zoneId?: string | undefined;
    } & {
        zoneId?: string | undefined;
    } & Record<Exclude<keyof I, "zoneId">, never>>(object: I): GetZoneRequest;
};
/** A set of methods to retrieve information about availability zones. */
export declare const ZoneServiceService: {
    /**
     * Returns the information about the specified availability zone.
     *
     * To get the list of availability zones, make a [List] request.
     */
    readonly get: {
        readonly path: "/yandex.cloud.compute.v1.ZoneService/Get";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: GetZoneRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => GetZoneRequest;
        readonly responseSerialize: (value: Zone) => Buffer;
        readonly responseDeserialize: (value: Buffer) => Zone;
    };
    /** Retrieves the list of availability zones. */
    readonly list: {
        readonly path: "/yandex.cloud.compute.v1.ZoneService/List";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: ListZonesRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => ListZonesRequest;
        readonly responseSerialize: (value: ListZonesResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => ListZonesResponse;
    };
};
export interface ZoneServiceServer extends UntypedServiceImplementation {
    /**
     * Returns the information about the specified availability zone.
     *
     * To get the list of availability zones, make a [List] request.
     */
    get: handleUnaryCall<GetZoneRequest, Zone>;
    /** Retrieves the list of availability zones. */
    list: handleUnaryCall<ListZonesRequest, ListZonesResponse>;
}
export interface ZoneServiceClient extends Client {
    /**
     * Returns the information about the specified availability zone.
     *
     * To get the list of availability zones, make a [List] request.
     */
    get(request: GetZoneRequest, callback: (error: ServiceError | null, response: Zone) => void): ClientUnaryCall;
    get(request: GetZoneRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Zone) => void): ClientUnaryCall;
    get(request: GetZoneRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Zone) => void): ClientUnaryCall;
    /** Retrieves the list of availability zones. */
    list(request: ListZonesRequest, callback: (error: ServiceError | null, response: ListZonesResponse) => void): ClientUnaryCall;
    list(request: ListZonesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListZonesResponse) => void): ClientUnaryCall;
    list(request: ListZonesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListZonesResponse) => void): ClientUnaryCall;
}
export declare const ZoneServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): ZoneServiceClient;
    service: typeof ZoneServiceService;
};
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 {};
