import _m0 from 'protobufjs/minimal';
import { Peering } from '../../../../yandex/cloud/cic/v1/peering';
export declare const protobufPackage = "yandex.cloud.cic.v1";
/** A PrivateConnection resource. */
export interface PrivateConnection {
    /** ID of the privateConnection. */
    id: string;
    /**
     * Name of the privateConnection.
     * 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 privateConnection. 0-256 characters long. */
    description: string;
    /** ID of the folder that the privateConnection belongs to. */
    folderId: string;
    /** ID of the region that the privateConnection belongs to. */
    regionId: string;
    /** ID of the trunk_connection that the privateConnection 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;
    /** IPv4 StaticRoute config of connection */
    ipv4StaticRoutes: PrivateConnection_StaticRoute[];
    /**
     * 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 privateConnection. */
    status: PrivateConnection_Status;
    /** Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */
    createdAt?: Date;
}
export declare enum PrivateConnection_Status {
    STATUS_UNSPECIFIED = 0,
    CREATING = 1,
    UPDATING = 2,
    DELETING = 3,
    ACTIVE = 4,
    UNRECOGNIZED = -1
}
export declare function privateConnection_StatusFromJSON(object: any): PrivateConnection_Status;
export declare function privateConnection_StatusToJSON(object: PrivateConnection_Status): string;
export interface PrivateConnection_LabelsEntry {
    key: string;
    value: string;
}
export interface PrivateConnection_StaticRoute {
    /**
     * Prefix.
     * It's an ip with format ipPrefix/length where address part of ipPrefix is 0.
     */
    prefix: string;
}
export declare const PrivateConnection: {
    encode(message: PrivateConnection, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): PrivateConnection;
    fromJSON(object: any): PrivateConnection;
    toJSON(message: PrivateConnection): 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;
        ipv4StaticRoutes?: {
            prefix?: string | undefined;
        }[] | undefined;
        labels?: {
            [x: string]: string | undefined;
        } | undefined;
        status?: PrivateConnection_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;
        ipv4StaticRoutes?: ({
            prefix?: string | undefined;
        }[] & ({
            prefix?: string | undefined;
        } & {
            prefix?: string | undefined;
        } & Record<Exclude<keyof I["ipv4StaticRoutes"][number], "prefix">, never>)[] & Record<Exclude<keyof I["ipv4StaticRoutes"], keyof {
            prefix?: string | undefined;
        }[]>, never>) | undefined;
        labels?: ({
            [x: string]: string | undefined;
        } & {
            [x: string]: string | undefined;
        } & Record<Exclude<keyof I["labels"], string | number>, never>) | undefined;
        status?: PrivateConnection_Status | undefined;
        createdAt?: Date | undefined;
    } & Record<Exclude<keyof I, keyof PrivateConnection>, never>>(object: I): PrivateConnection;
};
export declare const PrivateConnection_LabelsEntry: {
    encode(message: PrivateConnection_LabelsEntry, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): PrivateConnection_LabelsEntry;
    fromJSON(object: any): PrivateConnection_LabelsEntry;
    toJSON(message: PrivateConnection_LabelsEntry): unknown;
    fromPartial<I extends {
        key?: string | undefined;
        value?: string | undefined;
    } & {
        key?: string | undefined;
        value?: string | undefined;
    } & Record<Exclude<keyof I, keyof PrivateConnection_LabelsEntry>, never>>(object: I): PrivateConnection_LabelsEntry;
};
export declare const PrivateConnection_StaticRoute: {
    encode(message: PrivateConnection_StaticRoute, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): PrivateConnection_StaticRoute;
    fromJSON(object: any): PrivateConnection_StaticRoute;
    toJSON(message: PrivateConnection_StaticRoute): unknown;
    fromPartial<I extends {
        prefix?: string | undefined;
    } & {
        prefix?: string | undefined;
    } & Record<Exclude<keyof I, "prefix">, never>>(object: I): PrivateConnection_StaticRoute;
};
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 {};
