import _m0 from 'protobufjs/minimal';
export declare const protobufPackage = "yandex.cloud.serverless.mdbproxy.v1";
export interface Proxy {
    /** ID of the proxy. */
    id: string;
    /** ID of the folder that the proxy belongs to. */
    folderId: string;
    /** Creation timestamp for the proxy. */
    createdAt?: Date;
    /** Name of the proxy. */
    name: string;
    /** Description of the proxy. */
    description: string;
    /** Resource labels as `key:value` pairs. */
    labels: {
        [key: string]: string;
    };
    /** MDB specific settings. */
    target?: Target;
}
export interface Proxy_LabelsEntry {
    key: string;
    value: string;
}
export interface Target {
    /** Clickhouse settings for proxy. */
    clickhouse?: Target_ClickHouse | undefined;
    /** PostgreSQL settings for proxy. */
    postgresql?: Target_PostgreSQL | undefined;
}
export interface Target_PostgreSQL {
    /** Cluster identifier for postgresql. */
    clusterId: string;
    /** PostgreSQL user. */
    user: string;
    /** PostgreSQL password, input only field. */
    password: string;
    /** PostgreSQL database name. */
    db: string;
    /** PostgreSQL proxy-host for connection, output only field. */
    endpoint: string;
}
export interface Target_ClickHouse {
    /** Cluster identifier for clickhouse. */
    clusterId: string;
    /** Clickhouse user. */
    user: string;
    /** Clickhouse password, input only field. */
    password: string;
    /** Clickhouse database name. */
    db: string;
    /** Clickhouse proxy-host for connection, output only field. */
    endpoint: string;
}
export declare const Proxy: {
    encode(message: Proxy, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Proxy;
    fromJSON(object: any): Proxy;
    toJSON(message: Proxy): unknown;
    fromPartial<I extends {
        id?: string | undefined;
        folderId?: string | undefined;
        createdAt?: Date | undefined;
        name?: string | undefined;
        description?: string | undefined;
        labels?: {
            [x: string]: string | undefined;
        } | undefined;
        target?: {
            clickhouse?: {
                clusterId?: string | undefined;
                user?: string | undefined;
                password?: string | undefined;
                db?: string | undefined;
                endpoint?: string | undefined;
            } | undefined;
            postgresql?: {
                clusterId?: string | undefined;
                user?: string | undefined;
                password?: string | undefined;
                db?: string | undefined;
                endpoint?: string | undefined;
            } | undefined;
        } | undefined;
    } & {
        id?: string | undefined;
        folderId?: string | undefined;
        createdAt?: Date | undefined;
        name?: string | undefined;
        description?: string | undefined;
        labels?: ({
            [x: string]: string | undefined;
        } & {
            [x: string]: string | undefined;
        } & Record<Exclude<keyof I["labels"], string | number>, never>) | undefined;
        target?: ({
            clickhouse?: {
                clusterId?: string | undefined;
                user?: string | undefined;
                password?: string | undefined;
                db?: string | undefined;
                endpoint?: string | undefined;
            } | undefined;
            postgresql?: {
                clusterId?: string | undefined;
                user?: string | undefined;
                password?: string | undefined;
                db?: string | undefined;
                endpoint?: string | undefined;
            } | undefined;
        } & {
            clickhouse?: ({
                clusterId?: string | undefined;
                user?: string | undefined;
                password?: string | undefined;
                db?: string | undefined;
                endpoint?: string | undefined;
            } & {
                clusterId?: string | undefined;
                user?: string | undefined;
                password?: string | undefined;
                db?: string | undefined;
                endpoint?: string | undefined;
            } & Record<Exclude<keyof I["target"]["clickhouse"], keyof Target_ClickHouse>, never>) | undefined;
            postgresql?: ({
                clusterId?: string | undefined;
                user?: string | undefined;
                password?: string | undefined;
                db?: string | undefined;
                endpoint?: string | undefined;
            } & {
                clusterId?: string | undefined;
                user?: string | undefined;
                password?: string | undefined;
                db?: string | undefined;
                endpoint?: string | undefined;
            } & Record<Exclude<keyof I["target"]["postgresql"], keyof Target_PostgreSQL>, never>) | undefined;
        } & Record<Exclude<keyof I["target"], keyof Target>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof Proxy>, never>>(object: I): Proxy;
};
export declare const Proxy_LabelsEntry: {
    encode(message: Proxy_LabelsEntry, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Proxy_LabelsEntry;
    fromJSON(object: any): Proxy_LabelsEntry;
    toJSON(message: Proxy_LabelsEntry): unknown;
    fromPartial<I extends {
        key?: string | undefined;
        value?: string | undefined;
    } & {
        key?: string | undefined;
        value?: string | undefined;
    } & Record<Exclude<keyof I, keyof Proxy_LabelsEntry>, never>>(object: I): Proxy_LabelsEntry;
};
export declare const Target: {
    encode(message: Target, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Target;
    fromJSON(object: any): Target;
    toJSON(message: Target): unknown;
    fromPartial<I extends {
        clickhouse?: {
            clusterId?: string | undefined;
            user?: string | undefined;
            password?: string | undefined;
            db?: string | undefined;
            endpoint?: string | undefined;
        } | undefined;
        postgresql?: {
            clusterId?: string | undefined;
            user?: string | undefined;
            password?: string | undefined;
            db?: string | undefined;
            endpoint?: string | undefined;
        } | undefined;
    } & {
        clickhouse?: ({
            clusterId?: string | undefined;
            user?: string | undefined;
            password?: string | undefined;
            db?: string | undefined;
            endpoint?: string | undefined;
        } & {
            clusterId?: string | undefined;
            user?: string | undefined;
            password?: string | undefined;
            db?: string | undefined;
            endpoint?: string | undefined;
        } & Record<Exclude<keyof I["clickhouse"], keyof Target_ClickHouse>, never>) | undefined;
        postgresql?: ({
            clusterId?: string | undefined;
            user?: string | undefined;
            password?: string | undefined;
            db?: string | undefined;
            endpoint?: string | undefined;
        } & {
            clusterId?: string | undefined;
            user?: string | undefined;
            password?: string | undefined;
            db?: string | undefined;
            endpoint?: string | undefined;
        } & Record<Exclude<keyof I["postgresql"], keyof Target_PostgreSQL>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof Target>, never>>(object: I): Target;
};
export declare const Target_PostgreSQL: {
    encode(message: Target_PostgreSQL, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Target_PostgreSQL;
    fromJSON(object: any): Target_PostgreSQL;
    toJSON(message: Target_PostgreSQL): unknown;
    fromPartial<I extends {
        clusterId?: string | undefined;
        user?: string | undefined;
        password?: string | undefined;
        db?: string | undefined;
        endpoint?: string | undefined;
    } & {
        clusterId?: string | undefined;
        user?: string | undefined;
        password?: string | undefined;
        db?: string | undefined;
        endpoint?: string | undefined;
    } & Record<Exclude<keyof I, keyof Target_PostgreSQL>, never>>(object: I): Target_PostgreSQL;
};
export declare const Target_ClickHouse: {
    encode(message: Target_ClickHouse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Target_ClickHouse;
    fromJSON(object: any): Target_ClickHouse;
    toJSON(message: Target_ClickHouse): unknown;
    fromPartial<I extends {
        clusterId?: string | undefined;
        user?: string | undefined;
        password?: string | undefined;
        db?: string | undefined;
        endpoint?: string | undefined;
    } & {
        clusterId?: string | undefined;
        user?: string | undefined;
        password?: string | undefined;
        db?: string | undefined;
        endpoint?: string | undefined;
    } & Record<Exclude<keyof I, keyof Target_ClickHouse>, never>>(object: I): Target_ClickHouse;
};
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 {};
