/// <reference types="node" />
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
import { Resource } from '../../../../yandex/cloud/quotamanager/v1/resource';
export declare const protobufPackage = "yandex.cloud.quotamanager.v1";
export interface GetQuotaLimitRequest {
    /** The resource for which the quota limit is being requested. */
    resource?: Resource;
    /** The id of the quota to retrieve. */
    quotaId: string;
}
export interface ListQuotaLimitsRequest {
    /** The resource for which quota limits are being listed. */
    resource?: Resource;
    /** The service for which quota limits are being requested. */
    service: string;
    /** The maximum number of quota limits to return per response. */
    pageSize: number;
    /** Token to retrieve the next page of results. Omitted on the first request. */
    pageToken: string;
}
export interface ListQuotaLimitsResponse {
    /** The associated resource for these quota limits. */
    resource?: Resource;
    /** List of quota limits for the specified resource and service. */
    quotaLimits: QuotaLimit[];
    /** Token to retrieve the next page of results. */
    nextPageToken: string;
}
export interface ListServicesRequest {
    /** The type of resources for which services are being requested. */
    resourceType: string;
    /** The maximum number of services to return per response. */
    pageSize: number;
    /** Token to retrieve the next page of results. Omitted on the first request. */
    pageToken: string;
}
export interface ListServicesResponse {
    /** List of services available for quota management. */
    services: Service[];
    /** Token to retrieve the next page of results. */
    nextPageToken: string;
}
export interface QuotaLimit {
    /** The unique id of the quota. */
    quotaId: string;
    /** The limit value set for this quota. */
    limit?: number;
    /** The current usage level of this quota. */
    usage?: number;
}
export interface Service {
    /** The unique id of the service. */
    id: string;
    /** The name of the service. */
    name: string;
}
export declare const GetQuotaLimitRequest: {
    encode(message: GetQuotaLimitRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): GetQuotaLimitRequest;
    fromJSON(object: any): GetQuotaLimitRequest;
    toJSON(message: GetQuotaLimitRequest): unknown;
    fromPartial<I extends {
        resource?: {
            id?: string | undefined;
            type?: string | undefined;
        } | undefined;
        quotaId?: string | undefined;
    } & {
        resource?: ({
            id?: string | undefined;
            type?: string | undefined;
        } & {
            id?: string | undefined;
            type?: string | undefined;
        } & Record<Exclude<keyof I["resource"], keyof Resource>, never>) | undefined;
        quotaId?: string | undefined;
    } & Record<Exclude<keyof I, keyof GetQuotaLimitRequest>, never>>(object: I): GetQuotaLimitRequest;
};
export declare const ListQuotaLimitsRequest: {
    encode(message: ListQuotaLimitsRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListQuotaLimitsRequest;
    fromJSON(object: any): ListQuotaLimitsRequest;
    toJSON(message: ListQuotaLimitsRequest): unknown;
    fromPartial<I extends {
        resource?: {
            id?: string | undefined;
            type?: string | undefined;
        } | undefined;
        service?: string | undefined;
        pageSize?: number | undefined;
        pageToken?: string | undefined;
    } & {
        resource?: ({
            id?: string | undefined;
            type?: string | undefined;
        } & {
            id?: string | undefined;
            type?: string | undefined;
        } & Record<Exclude<keyof I["resource"], keyof Resource>, never>) | undefined;
        service?: string | undefined;
        pageSize?: number | undefined;
        pageToken?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListQuotaLimitsRequest>, never>>(object: I): ListQuotaLimitsRequest;
};
export declare const ListQuotaLimitsResponse: {
    encode(message: ListQuotaLimitsResponse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListQuotaLimitsResponse;
    fromJSON(object: any): ListQuotaLimitsResponse;
    toJSON(message: ListQuotaLimitsResponse): unknown;
    fromPartial<I extends {
        resource?: {
            id?: string | undefined;
            type?: string | undefined;
        } | undefined;
        quotaLimits?: {
            quotaId?: string | undefined;
            limit?: number | undefined;
            usage?: number | undefined;
        }[] | undefined;
        nextPageToken?: string | undefined;
    } & {
        resource?: ({
            id?: string | undefined;
            type?: string | undefined;
        } & {
            id?: string | undefined;
            type?: string | undefined;
        } & Record<Exclude<keyof I["resource"], keyof Resource>, never>) | undefined;
        quotaLimits?: ({
            quotaId?: string | undefined;
            limit?: number | undefined;
            usage?: number | undefined;
        }[] & ({
            quotaId?: string | undefined;
            limit?: number | undefined;
            usage?: number | undefined;
        } & {
            quotaId?: string | undefined;
            limit?: number | undefined;
            usage?: number | undefined;
        } & Record<Exclude<keyof I["quotaLimits"][number], keyof QuotaLimit>, never>)[] & Record<Exclude<keyof I["quotaLimits"], keyof {
            quotaId?: string | undefined;
            limit?: number | undefined;
            usage?: number | undefined;
        }[]>, never>) | undefined;
        nextPageToken?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListQuotaLimitsResponse>, never>>(object: I): ListQuotaLimitsResponse;
};
export declare const ListServicesRequest: {
    encode(message: ListServicesRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListServicesRequest;
    fromJSON(object: any): ListServicesRequest;
    toJSON(message: ListServicesRequest): unknown;
    fromPartial<I extends {
        resourceType?: string | undefined;
        pageSize?: number | undefined;
        pageToken?: string | undefined;
    } & {
        resourceType?: string | undefined;
        pageSize?: number | undefined;
        pageToken?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListServicesRequest>, never>>(object: I): ListServicesRequest;
};
export declare const ListServicesResponse: {
    encode(message: ListServicesResponse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListServicesResponse;
    fromJSON(object: any): ListServicesResponse;
    toJSON(message: ListServicesResponse): unknown;
    fromPartial<I extends {
        services?: {
            id?: string | undefined;
            name?: string | undefined;
        }[] | undefined;
        nextPageToken?: string | undefined;
    } & {
        services?: ({
            id?: string | undefined;
            name?: string | undefined;
        }[] & ({
            id?: string | undefined;
            name?: string | undefined;
        } & {
            id?: string | undefined;
            name?: string | undefined;
        } & Record<Exclude<keyof I["services"][number], keyof Service>, never>)[] & Record<Exclude<keyof I["services"], keyof {
            id?: string | undefined;
            name?: string | undefined;
        }[]>, never>) | undefined;
        nextPageToken?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListServicesResponse>, never>>(object: I): ListServicesResponse;
};
export declare const QuotaLimit: {
    encode(message: QuotaLimit, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): QuotaLimit;
    fromJSON(object: any): QuotaLimit;
    toJSON(message: QuotaLimit): unknown;
    fromPartial<I extends {
        quotaId?: string | undefined;
        limit?: number | undefined;
        usage?: number | undefined;
    } & {
        quotaId?: string | undefined;
        limit?: number | undefined;
        usage?: number | undefined;
    } & Record<Exclude<keyof I, keyof QuotaLimit>, never>>(object: I): QuotaLimit;
};
export declare const Service: {
    encode(message: Service, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Service;
    fromJSON(object: any): Service;
    toJSON(message: Service): unknown;
    fromPartial<I extends {
        id?: string | undefined;
        name?: string | undefined;
    } & {
        id?: string | undefined;
        name?: string | undefined;
    } & Record<Exclude<keyof I, keyof Service>, never>>(object: I): Service;
};
/** A set of methods for managing quota limits. */
export declare const QuotaLimitServiceService: {
    /** Returns the specified quota limit. */
    readonly get: {
        readonly path: "/yandex.cloud.quotamanager.v1.QuotaLimitService/Get";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: GetQuotaLimitRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => GetQuotaLimitRequest;
        readonly responseSerialize: (value: QuotaLimit) => Buffer;
        readonly responseDeserialize: (value: Buffer) => QuotaLimit;
    };
    /** Retrieves the list of quota limits for a given service. */
    readonly list: {
        readonly path: "/yandex.cloud.quotamanager.v1.QuotaLimitService/List";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: ListQuotaLimitsRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => ListQuotaLimitsRequest;
        readonly responseSerialize: (value: ListQuotaLimitsResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => ListQuotaLimitsResponse;
    };
    /** Retrieves the list of services available for quota management. */
    readonly listServices: {
        readonly path: "/yandex.cloud.quotamanager.v1.QuotaLimitService/ListServices";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: ListServicesRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => ListServicesRequest;
        readonly responseSerialize: (value: ListServicesResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => ListServicesResponse;
    };
};
export interface QuotaLimitServiceServer extends UntypedServiceImplementation {
    /** Returns the specified quota limit. */
    get: handleUnaryCall<GetQuotaLimitRequest, QuotaLimit>;
    /** Retrieves the list of quota limits for a given service. */
    list: handleUnaryCall<ListQuotaLimitsRequest, ListQuotaLimitsResponse>;
    /** Retrieves the list of services available for quota management. */
    listServices: handleUnaryCall<ListServicesRequest, ListServicesResponse>;
}
export interface QuotaLimitServiceClient extends Client {
    /** Returns the specified quota limit. */
    get(request: GetQuotaLimitRequest, callback: (error: ServiceError | null, response: QuotaLimit) => void): ClientUnaryCall;
    get(request: GetQuotaLimitRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QuotaLimit) => void): ClientUnaryCall;
    get(request: GetQuotaLimitRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: QuotaLimit) => void): ClientUnaryCall;
    /** Retrieves the list of quota limits for a given service. */
    list(request: ListQuotaLimitsRequest, callback: (error: ServiceError | null, response: ListQuotaLimitsResponse) => void): ClientUnaryCall;
    list(request: ListQuotaLimitsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListQuotaLimitsResponse) => void): ClientUnaryCall;
    list(request: ListQuotaLimitsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListQuotaLimitsResponse) => void): ClientUnaryCall;
    /** Retrieves the list of services available for quota management. */
    listServices(request: ListServicesRequest, callback: (error: ServiceError | null, response: ListServicesResponse) => void): ClientUnaryCall;
    listServices(request: ListServicesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListServicesResponse) => void): ClientUnaryCall;
    listServices(request: ListServicesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListServicesResponse) => void): ClientUnaryCall;
}
export declare const QuotaLimitServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): QuotaLimitServiceClient;
    service: typeof QuotaLimitServiceService;
};
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 {};
