/// <reference types="node" />
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
import { Partner } from '../../../../yandex/cloud/cic/v1/partner';
export declare const protobufPackage = "yandex.cloud.cic.v1";
export interface GetPartnerRequest {
    /**
     * ID of the Partner resource to return.
     * To get the partner ID use a [PartnerService.List] request.
     */
    partnerId: string;
}
export interface ListPartnersRequest {
    /**
     * The maximum number of results per page to return. If the number of available
     * results is larger than [page_size],
     * the service returns a [ListPartnersResponse.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
     * [ListPartnersResponse.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 [Subnet.name] field.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     */
    filter: string;
}
export interface ListPartnersResponse {
    /** List of Partner resources. */
    partners: Partner[];
    /**
     * This token allows you to get the next page of results for list requests. If the number of results
     * is larger than [ListPartnersRequest.page_size], use
     * the [next_page_token] as the value
     * for the [ListPartnersRequest.page_token] query parameter
     * in the next list request. Subsequent list requests will have their own
     * [next_page_token] to continue paging through the results.
     */
    nextPageToken: string;
}
export declare const GetPartnerRequest: {
    encode(message: GetPartnerRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): GetPartnerRequest;
    fromJSON(object: any): GetPartnerRequest;
    toJSON(message: GetPartnerRequest): unknown;
    fromPartial<I extends {
        partnerId?: string | undefined;
    } & {
        partnerId?: string | undefined;
    } & Record<Exclude<keyof I, "partnerId">, never>>(object: I): GetPartnerRequest;
};
export declare const ListPartnersRequest: {
    encode(message: ListPartnersRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListPartnersRequest;
    fromJSON(object: any): ListPartnersRequest;
    toJSON(message: ListPartnersRequest): unknown;
    fromPartial<I extends {
        pageSize?: number | undefined;
        pageToken?: string | undefined;
        filter?: string | undefined;
    } & {
        pageSize?: number | undefined;
        pageToken?: string | undefined;
        filter?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListPartnersRequest>, never>>(object: I): ListPartnersRequest;
};
export declare const ListPartnersResponse: {
    encode(message: ListPartnersResponse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListPartnersResponse;
    fromJSON(object: any): ListPartnersResponse;
    toJSON(message: ListPartnersResponse): unknown;
    fromPartial<I extends {
        partners?: {
            id?: string | undefined;
            regionId?: string | undefined;
            status?: import("../../../../yandex/cloud/cic/v1/partner").Partner_Status | undefined;
        }[] | undefined;
        nextPageToken?: string | undefined;
    } & {
        partners?: ({
            id?: string | undefined;
            regionId?: string | undefined;
            status?: import("../../../../yandex/cloud/cic/v1/partner").Partner_Status | undefined;
        }[] & ({
            id?: string | undefined;
            regionId?: string | undefined;
            status?: import("../../../../yandex/cloud/cic/v1/partner").Partner_Status | undefined;
        } & {
            id?: string | undefined;
            regionId?: string | undefined;
            status?: import("../../../../yandex/cloud/cic/v1/partner").Partner_Status | undefined;
        } & Record<Exclude<keyof I["partners"][number], keyof Partner>, never>)[] & Record<Exclude<keyof I["partners"], keyof {
            id?: string | undefined;
            regionId?: string | undefined;
            status?: import("../../../../yandex/cloud/cic/v1/partner").Partner_Status | undefined;
        }[]>, never>) | undefined;
        nextPageToken?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListPartnersResponse>, never>>(object: I): ListPartnersResponse;
};
/** A set of methods for managing Partner resources. */
export declare const PartnerServiceService: {
    /**
     * Returns the specified Partner resource.
     *
     * To get the list of available Partner resources, make a [List] request.
     */
    readonly get: {
        readonly path: "/yandex.cloud.cic.v1.PartnerService/Get";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: GetPartnerRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => GetPartnerRequest;
        readonly responseSerialize: (value: Partner) => Buffer;
        readonly responseDeserialize: (value: Buffer) => Partner;
    };
    /** Retrieves the list of Partner resources in the specified folder. */
    readonly list: {
        readonly path: "/yandex.cloud.cic.v1.PartnerService/List";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: ListPartnersRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => ListPartnersRequest;
        readonly responseSerialize: (value: ListPartnersResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => ListPartnersResponse;
    };
};
export interface PartnerServiceServer extends UntypedServiceImplementation {
    /**
     * Returns the specified Partner resource.
     *
     * To get the list of available Partner resources, make a [List] request.
     */
    get: handleUnaryCall<GetPartnerRequest, Partner>;
    /** Retrieves the list of Partner resources in the specified folder. */
    list: handleUnaryCall<ListPartnersRequest, ListPartnersResponse>;
}
export interface PartnerServiceClient extends Client {
    /**
     * Returns the specified Partner resource.
     *
     * To get the list of available Partner resources, make a [List] request.
     */
    get(request: GetPartnerRequest, callback: (error: ServiceError | null, response: Partner) => void): ClientUnaryCall;
    get(request: GetPartnerRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Partner) => void): ClientUnaryCall;
    get(request: GetPartnerRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Partner) => void): ClientUnaryCall;
    /** Retrieves the list of Partner resources in the specified folder. */
    list(request: ListPartnersRequest, callback: (error: ServiceError | null, response: ListPartnersResponse) => void): ClientUnaryCall;
    list(request: ListPartnersRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListPartnersResponse) => void): ClientUnaryCall;
    list(request: ListPartnersRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListPartnersResponse) => void): ClientUnaryCall;
}
export declare const PartnerServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): PartnerServiceClient;
    service: typeof PartnerServiceService;
};
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 {};
