/// <reference types="node" />
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
import { Location } from '../../../../yandex/cloud/ydb/v1/location';
export declare const protobufPackage = "yandex.cloud.ydb.v1";
export interface GetLocationRequest {
    /** Required. ID of the location to return. */
    locationId: string;
}
export interface ListLocationsRequest {
    /**
     * The maximum number of results per page that should be returned. If the number of available
     * results is larger than `page_size`, the service returns a `next_page_token` that can be used
     * to get the next page of results in subsequent ListLocations requests.
     * Acceptable values are 0 to 1000, inclusive. Default value: 100.
     */
    pageSize: number;
    /**
     * Page token. Set `page_token` to the `next_page_token` returned by a previous ListLocations
     * request to get the next page of results.
     */
    pageToken: string;
}
export interface ListLocationsResponse {
    /** Requested list of locations. */
    locations: Location[];
    /**
     * This token allows you to get the next page of results for ListLocations requests,
     * if the number of results is larger than `page_size` specified in the request.
     * To get the next page, specify the value of `next_page_token` as a value for
     * the `page_token` parameter in the next ListLocations request. Subsequent ListLocations
     * requests will have their own `next_page_token` to continue paging through the results.
     */
    nextPageToken: string;
}
export declare const GetLocationRequest: {
    encode(message: GetLocationRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): GetLocationRequest;
    fromJSON(object: any): GetLocationRequest;
    toJSON(message: GetLocationRequest): unknown;
    fromPartial<I extends {
        locationId?: string | undefined;
    } & {
        locationId?: string | undefined;
    } & Record<Exclude<keyof I, "locationId">, never>>(object: I): GetLocationRequest;
};
export declare const ListLocationsRequest: {
    encode(message: ListLocationsRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListLocationsRequest;
    fromJSON(object: any): ListLocationsRequest;
    toJSON(message: ListLocationsRequest): unknown;
    fromPartial<I extends {
        pageSize?: number | undefined;
        pageToken?: string | undefined;
    } & {
        pageSize?: number | undefined;
        pageToken?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListLocationsRequest>, never>>(object: I): ListLocationsRequest;
};
export declare const ListLocationsResponse: {
    encode(message: ListLocationsResponse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListLocationsResponse;
    fromJSON(object: any): ListLocationsResponse;
    toJSON(message: ListLocationsResponse): unknown;
    fromPartial<I extends {
        locations?: {
            id?: string | undefined;
            description?: string | undefined;
        }[] | undefined;
        nextPageToken?: string | undefined;
    } & {
        locations?: ({
            id?: string | undefined;
            description?: string | undefined;
        }[] & ({
            id?: string | undefined;
            description?: string | undefined;
        } & {
            id?: string | undefined;
            description?: string | undefined;
        } & Record<Exclude<keyof I["locations"][number], keyof Location>, never>)[] & Record<Exclude<keyof I["locations"], keyof {
            id?: string | undefined;
            description?: string | undefined;
        }[]>, never>) | undefined;
        nextPageToken?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListLocationsResponse>, never>>(object: I): ListLocationsResponse;
};
export declare const LocationServiceService: {
    /** Returns the specified location. */
    readonly get: {
        readonly path: "/yandex.cloud.ydb.v1.LocationService/Get";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: GetLocationRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => GetLocationRequest;
        readonly responseSerialize: (value: Location) => Buffer;
        readonly responseDeserialize: (value: Buffer) => Location;
    };
    /** Returns the list of available locations. */
    readonly list: {
        readonly path: "/yandex.cloud.ydb.v1.LocationService/List";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: ListLocationsRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => ListLocationsRequest;
        readonly responseSerialize: (value: ListLocationsResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => ListLocationsResponse;
    };
};
export interface LocationServiceServer extends UntypedServiceImplementation {
    /** Returns the specified location. */
    get: handleUnaryCall<GetLocationRequest, Location>;
    /** Returns the list of available locations. */
    list: handleUnaryCall<ListLocationsRequest, ListLocationsResponse>;
}
export interface LocationServiceClient extends Client {
    /** Returns the specified location. */
    get(request: GetLocationRequest, callback: (error: ServiceError | null, response: Location) => void): ClientUnaryCall;
    get(request: GetLocationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Location) => void): ClientUnaryCall;
    get(request: GetLocationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Location) => void): ClientUnaryCall;
    /** Returns the list of available locations. */
    list(request: ListLocationsRequest, callback: (error: ServiceError | null, response: ListLocationsResponse) => void): ClientUnaryCall;
    list(request: ListLocationsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListLocationsResponse) => void): ClientUnaryCall;
    list(request: ListLocationsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListLocationsResponse) => void): ClientUnaryCall;
}
export declare const LocationServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): LocationServiceClient;
    service: typeof LocationServiceService;
};
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 {};
