import _m0 from 'protobufjs/minimal';
import { Peering } from '../../../../yandex/cloud/cic/v1/peering';
export declare const protobufPackage = "yandex.cloud.cic.v1";
/** A PublicConnection resource. */
export interface PublicConnection {
    /** ID of the publicConnection. */
    id: string;
    /**
     * Name of the publicConnection.
     * The name must be unique within the folder.
     * Value must match the regular expression ``\|[a-zA-Z]([-_a-zA-Z0-9]{0,61}[a-zA-Z0-9])?``.
     */
    name: string;
    /** Optional description of the publicConnection. 0-256 characters long. */
    description: string;
    /** ID of the folder that the publicConnection belongs to. */
    folderId: string;
    /** ID of the region that the publicConnection belongs to. */
    regionId: string;
    /** ID of the trunk_connection that the publicConnection belongs to. */
    trunkConnectionId: string;
    /**
     * VLAN_ID that the privateConnection uses in multiplexing.
     * Not used in connections over partners-II
     * Value range: [1, 4095]
     */
    vlanId?: number;
    /** IPv4 peering config of connection */
    ipv4Peering?: Peering;
    /** Cloud services that the publicConnection connects to. */
    ipv4AllowedServiceTypes: PublicConnection_CloudServiceType[];
    /**
     * IPv4 Peer Announced Prefixes
     * It's an list of ip with format ipPrefix/length where address part of ipPrefix is 0
     */
    ipv4PeerAnnouncedPrefixes: string[];
    /**
     * Resource labels, `key:value` pairs.
     * No more than 64 per resource.
     * The maximum string length in characters for each value is 63.
     * Each value must match the regular expression `[-_0-9a-z]*`.
     * The string length in characters for each key must be 1-63.
     * Each key must match the regular expression `[a-z][-_0-9a-z]*`.
     */
    labels: {
        [key: string]: string;
    };
    /** Status of the publicConnection. */
    status: PublicConnection_Status;
    /** Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */
    createdAt?: Date;
}
export declare enum PublicConnection_CloudServiceType {
    CLOUD_SERVICE_TYPE_UNSPECIFIED = 0,
    /** @deprecated */
    CLOUD_SERVICE_YANDEX = 1,
    CLOUD_SERVICE_ALL_PUBLIC = 2,
    CLOUD_SERVICE_S3 = 3,
    CLOUD_SERVICE_ML = 4,
    CLOUD_SERVICE_APIGW = 5,
    CLOUD_SERVICE_CONTAINER_REGISTRY = 6,
    CLOUD_SERVICE_CONSOLE = 7,
    CLOUD_SERVICE_MONITORING = 8,
    CLOUD_SERVICE_YANDEX_GPT = 9,
    CLOUD_SERVICES_ALL_API_ENDPOINT = 10,
    CLOUD_SERVICE_YMQ = 11,
    UNRECOGNIZED = -1
}
export declare function publicConnection_CloudServiceTypeFromJSON(object: any): PublicConnection_CloudServiceType;
export declare function publicConnection_CloudServiceTypeToJSON(object: PublicConnection_CloudServiceType): string;
export declare enum PublicConnection_Status {
    STATUS_UNSPECIFIED = 0,
    CREATING = 1,
    UPDATING = 2,
    DELETING = 3,
    ACTIVE = 4,
    UNRECOGNIZED = -1
}
export declare function publicConnection_StatusFromJSON(object: any): PublicConnection_Status;
export declare function publicConnection_StatusToJSON(object: PublicConnection_Status): string;
export interface PublicConnection_LabelsEntry {
    key: string;
    value: string;
}
export declare const PublicConnection: {
    encode(message: PublicConnection, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): PublicConnection;
    fromJSON(object: any): PublicConnection;
    toJSON(message: PublicConnection): unknown;
    fromPartial<I extends {
        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?: PublicConnection_CloudServiceType[] | undefined;
        ipv4PeerAnnouncedPrefixes?: string[] | undefined;
        labels?: {
            [x: string]: string | undefined;
        } | undefined;
        status?: 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["ipv4Peering"], keyof Peering>, never>) | undefined;
        ipv4AllowedServiceTypes?: (PublicConnection_CloudServiceType[] & PublicConnection_CloudServiceType[] & Record<Exclude<keyof I["ipv4AllowedServiceTypes"], keyof PublicConnection_CloudServiceType[]>, never>) | undefined;
        ipv4PeerAnnouncedPrefixes?: (string[] & string[] & Record<Exclude<keyof I["ipv4PeerAnnouncedPrefixes"], keyof string[]>, never>) | undefined;
        labels?: ({
            [x: string]: string | undefined;
        } & {
            [x: string]: string | undefined;
        } & Record<Exclude<keyof I["labels"], string | number>, never>) | undefined;
        status?: PublicConnection_Status | undefined;
        createdAt?: Date | undefined;
    } & Record<Exclude<keyof I, keyof PublicConnection>, never>>(object: I): PublicConnection;
};
export declare const PublicConnection_LabelsEntry: {
    encode(message: PublicConnection_LabelsEntry, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): PublicConnection_LabelsEntry;
    fromJSON(object: any): PublicConnection_LabelsEntry;
    toJSON(message: PublicConnection_LabelsEntry): unknown;
    fromPartial<I extends {
        key?: string | undefined;
        value?: string | undefined;
    } & {
        key?: string | undefined;
        value?: string | undefined;
    } & Record<Exclude<keyof I, keyof PublicConnection_LabelsEntry>, never>>(object: I): PublicConnection_LabelsEntry;
};
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 {};
