/// <reference types="node" />
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
import { PublicConnection } from '../../../../yandex/cloud/cic/v1/public_connection';
export declare const protobufPackage = "yandex.cloud.cic.v1";
export interface GetPublicConnectionRequest {
    /**
     * ID of the PublicConnection resource to return.
     * To get the publicConnection ID use a [PublicConnectionService.List] request.
     */
    publicConnectionId: string;
}
export interface ListPublicConnectionsRequest {
    /**
     * ID of the folder to list publicConnections in.
     * 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 [ListPublicConnectionsResponse.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
     * [ListPublicConnectionsResponse.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 ListPublicConnectionsResponse {
    /** List of PublicConnection resources. */
    publicConnections: PublicConnection[];
    /**
     * This token allows you to get the next page of results for list requests. If the number of results
     * is larger than [ListPublicConnectionsRequest.page_size], use
     * the [next_page_token] as the value
     * for the [ListPublicConnectionsRequest.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 GetPublicConnectionRequest: {
    encode(message: GetPublicConnectionRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): GetPublicConnectionRequest;
    fromJSON(object: any): GetPublicConnectionRequest;
    toJSON(message: GetPublicConnectionRequest): unknown;
    fromPartial<I extends {
        publicConnectionId?: string | undefined;
    } & {
        publicConnectionId?: string | undefined;
    } & Record<Exclude<keyof I, "publicConnectionId">, never>>(object: I): GetPublicConnectionRequest;
};
export declare const ListPublicConnectionsRequest: {
    encode(message: ListPublicConnectionsRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListPublicConnectionsRequest;
    fromJSON(object: any): ListPublicConnectionsRequest;
    toJSON(message: ListPublicConnectionsRequest): unknown;
    fromPartial<I extends {
        folderId?: string | undefined;
        pageSize?: number | undefined;
        pageToken?: string | undefined;
        filter?: string | undefined;
    } & {
        folderId?: string | undefined;
        pageSize?: number | undefined;
        pageToken?: string | undefined;
        filter?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListPublicConnectionsRequest>, never>>(object: I): ListPublicConnectionsRequest;
};
export declare const ListPublicConnectionsResponse: {
    encode(message: ListPublicConnectionsResponse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ListPublicConnectionsResponse;
    fromJSON(object: any): ListPublicConnectionsResponse;
    toJSON(message: ListPublicConnectionsResponse): unknown;
    fromPartial<I extends {
        publicConnections?: {
            id?: string | undefined;
            name?: string | undefined;
            description?: string | undefined;
            folderId?: string | undefined;
            regionId?: string | undefined;
            trunkConnectionId?: string | undefined;
            vlanId?: number | undefined;
            ipv4Peering?: {
                peeringSubnet?: string | undefined;
                peerIp?: string | undefined;
                cloudIp?: string | undefined;
                peerBgpAsn?: number | undefined;
                cloudBgpAsn?: number | undefined;
                peerBgpMd5Key?: string | undefined;
            } | undefined;
            ipv4AllowedServiceTypes?: import("../../../../yandex/cloud/cic/v1/public_connection").PublicConnection_CloudServiceType[] | undefined;
            ipv4PeerAnnouncedPrefixes?: string[] | undefined;
            labels?: {
                [x: string]: string | undefined;
            } | undefined;
            status?: import("../../../../yandex/cloud/cic/v1/public_connection").PublicConnection_Status | undefined;
            createdAt?: Date | undefined;
        }[] | undefined;
        nextPageToken?: string | undefined;
    } & {
        publicConnections?: ({
            id?: string | undefined;
            name?: string | undefined;
            description?: string | undefined;
            folderId?: string | undefined;
            regionId?: string | undefined;
            trunkConnectionId?: string | undefined;
            vlanId?: number | undefined;
            ipv4Peering?: {
                peeringSubnet?: string | undefined;
                peerIp?: string | undefined;
                cloudIp?: string | undefined;
                peerBgpAsn?: number | undefined;
                cloudBgpAsn?: number | undefined;
                peerBgpMd5Key?: string | undefined;
            } | undefined;
            ipv4AllowedServiceTypes?: import("../../../../yandex/cloud/cic/v1/public_connection").PublicConnection_CloudServiceType[] | undefined;
            ipv4PeerAnnouncedPrefixes?: string[] | undefined;
            labels?: {
                [x: string]: string | undefined;
            } | undefined;
            status?: import("../../../../yandex/cloud/cic/v1/public_connection").PublicConnection_Status | undefined;
            createdAt?: Date | undefined;
        }[] & ({
            id?: string | undefined;
            name?: string | undefined;
            description?: string | undefined;
            folderId?: string | undefined;
            regionId?: string | undefined;
            trunkConnectionId?: string | undefined;
            vlanId?: number | undefined;
            ipv4Peering?: {
                peeringSubnet?: string | undefined;
                peerIp?: string | undefined;
                cloudIp?: string | undefined;
                peerBgpAsn?: number | undefined;
                cloudBgpAsn?: number | undefined;
                peerBgpMd5Key?: string | undefined;
            } | undefined;
            ipv4AllowedServiceTypes?: import("../../../../yandex/cloud/cic/v1/public_connection").PublicConnection_CloudServiceType[] | undefined;
            ipv4PeerAnnouncedPrefixes?: string[] | undefined;
            labels?: {
                [x: string]: string | undefined;
            } | undefined;
            status?: import("../../../../yandex/cloud/cic/v1/public_connection").PublicConnection_Status | undefined;
            createdAt?: Date | undefined;
        } & {
            id?: string | undefined;
            name?: string | undefined;
            description?: string | undefined;
            folderId?: string | undefined;
            regionId?: string | undefined;
            trunkConnectionId?: string | undefined;
            vlanId?: number | undefined;
            ipv4Peering?: ({
                peeringSubnet?: string | undefined;
                peerIp?: string | undefined;
                cloudIp?: string | undefined;
                peerBgpAsn?: number | undefined;
                cloudBgpAsn?: number | undefined;
                peerBgpMd5Key?: string | undefined;
            } & {
                peeringSubnet?: string | undefined;
                peerIp?: string | undefined;
                cloudIp?: string | undefined;
                peerBgpAsn?: number | undefined;
                cloudBgpAsn?: number | undefined;
                peerBgpMd5Key?: string | undefined;
            } & Record<Exclude<keyof I["publicConnections"][number]["ipv4Peering"], keyof import("./peering").Peering>, never>) | undefined;
            ipv4AllowedServiceTypes?: (import("../../../../yandex/cloud/cic/v1/public_connection").PublicConnection_CloudServiceType[] & import("../../../../yandex/cloud/cic/v1/public_connection").PublicConnection_CloudServiceType[] & Record<Exclude<keyof I["publicConnections"][number]["ipv4AllowedServiceTypes"], keyof import("../../../../yandex/cloud/cic/v1/public_connection").PublicConnection_CloudServiceType[]>, never>) | undefined;
            ipv4PeerAnnouncedPrefixes?: (string[] & string[] & Record<Exclude<keyof I["publicConnections"][number]["ipv4PeerAnnouncedPrefixes"], keyof string[]>, never>) | undefined;
            labels?: ({
                [x: string]: string | undefined;
            } & {
                [x: string]: string | undefined;
            } & Record<Exclude<keyof I["publicConnections"][number]["labels"], string | number>, never>) | undefined;
            status?: import("../../../../yandex/cloud/cic/v1/public_connection").PublicConnection_Status | undefined;
            createdAt?: Date | undefined;
        } & Record<Exclude<keyof I["publicConnections"][number], keyof PublicConnection>, never>)[] & Record<Exclude<keyof I["publicConnections"], keyof {
            id?: string | undefined;
            name?: string | undefined;
            description?: string | undefined;
            folderId?: string | undefined;
            regionId?: string | undefined;
            trunkConnectionId?: string | undefined;
            vlanId?: number | undefined;
            ipv4Peering?: {
                peeringSubnet?: string | undefined;
                peerIp?: string | undefined;
                cloudIp?: string | undefined;
                peerBgpAsn?: number | undefined;
                cloudBgpAsn?: number | undefined;
                peerBgpMd5Key?: string | undefined;
            } | undefined;
            ipv4AllowedServiceTypes?: import("../../../../yandex/cloud/cic/v1/public_connection").PublicConnection_CloudServiceType[] | undefined;
            ipv4PeerAnnouncedPrefixes?: string[] | undefined;
            labels?: {
                [x: string]: string | undefined;
            } | undefined;
            status?: import("../../../../yandex/cloud/cic/v1/public_connection").PublicConnection_Status | undefined;
            createdAt?: Date | undefined;
        }[]>, never>) | undefined;
        nextPageToken?: string | undefined;
    } & Record<Exclude<keyof I, keyof ListPublicConnectionsResponse>, never>>(object: I): ListPublicConnectionsResponse;
};
/** A set of methods for managing PublicConnection resources. */
export declare const PublicConnectionServiceService: {
    /**
     * Returns the specified PublicConnection resource.
     *
     * To get the list of available PublicConnection resources, make a [List] request.
     */
    readonly get: {
        readonly path: "/yandex.cloud.cic.v1.PublicConnectionService/Get";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: GetPublicConnectionRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => GetPublicConnectionRequest;
        readonly responseSerialize: (value: PublicConnection) => Buffer;
        readonly responseDeserialize: (value: Buffer) => PublicConnection;
    };
    /** Retrieves the list of PublicConnection resources in the specified folder. */
    readonly list: {
        readonly path: "/yandex.cloud.cic.v1.PublicConnectionService/List";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: ListPublicConnectionsRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => ListPublicConnectionsRequest;
        readonly responseSerialize: (value: ListPublicConnectionsResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => ListPublicConnectionsResponse;
    };
};
export interface PublicConnectionServiceServer extends UntypedServiceImplementation {
    /**
     * Returns the specified PublicConnection resource.
     *
     * To get the list of available PublicConnection resources, make a [List] request.
     */
    get: handleUnaryCall<GetPublicConnectionRequest, PublicConnection>;
    /** Retrieves the list of PublicConnection resources in the specified folder. */
    list: handleUnaryCall<ListPublicConnectionsRequest, ListPublicConnectionsResponse>;
}
export interface PublicConnectionServiceClient extends Client {
    /**
     * Returns the specified PublicConnection resource.
     *
     * To get the list of available PublicConnection resources, make a [List] request.
     */
    get(request: GetPublicConnectionRequest, callback: (error: ServiceError | null, response: PublicConnection) => void): ClientUnaryCall;
    get(request: GetPublicConnectionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: PublicConnection) => void): ClientUnaryCall;
    get(request: GetPublicConnectionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: PublicConnection) => void): ClientUnaryCall;
    /** Retrieves the list of PublicConnection resources in the specified folder. */
    list(request: ListPublicConnectionsRequest, callback: (error: ServiceError | null, response: ListPublicConnectionsResponse) => void): ClientUnaryCall;
    list(request: ListPublicConnectionsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListPublicConnectionsResponse) => void): ClientUnaryCall;
    list(request: ListPublicConnectionsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListPublicConnectionsResponse) => void): ClientUnaryCall;
}
export declare const PublicConnectionServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): PublicConnectionServiceClient;
    service: typeof PublicConnectionServiceService;
};
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 {};
