import _m0 from 'protobufjs/minimal';
export declare const protobufPackage = "yandex.cloud.mdb.mongodb.v1";
/**
 * A MongoDB User resource. For more information, see the
 * [Developer's Guide](/docs/managed-mongodb/concepts).
 */
export interface User {
    /** Name of the MongoDB user. */
    name: string;
    /** ID of the MongoDB cluster the user belongs to. */
    clusterId: string;
    /** Set of permissions granted to the user. */
    permissions: Permission[];
}
export interface Permission {
    /** Name of the database that the permission grants access to. */
    databaseName: string;
    /** MongoDB roles for the [database_name] database that the permission grants. */
    roles: string[];
}
export interface UserSpec {
    /** Name of the MongoDB user. */
    name: string;
    /** Password of the MongoDB user. */
    password: string;
    /** Set of permissions to grant to the user. */
    permissions: Permission[];
}
export declare const User: {
    encode(message: User, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): User;
    fromJSON(object: any): User;
    toJSON(message: User): unknown;
    fromPartial<I extends {
        name?: string | undefined;
        clusterId?: string | undefined;
        permissions?: {
            databaseName?: string | undefined;
            roles?: string[] | undefined;
        }[] | undefined;
    } & {
        name?: string | undefined;
        clusterId?: string | undefined;
        permissions?: ({
            databaseName?: string | undefined;
            roles?: string[] | undefined;
        }[] & ({
            databaseName?: string | undefined;
            roles?: string[] | undefined;
        } & {
            databaseName?: string | undefined;
            roles?: (string[] & string[] & Record<Exclude<keyof I["permissions"][number]["roles"], keyof string[]>, never>) | undefined;
        } & Record<Exclude<keyof I["permissions"][number], keyof Permission>, never>)[] & Record<Exclude<keyof I["permissions"], keyof {
            databaseName?: string | undefined;
            roles?: string[] | undefined;
        }[]>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof User>, never>>(object: I): User;
};
export declare const Permission: {
    encode(message: Permission, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Permission;
    fromJSON(object: any): Permission;
    toJSON(message: Permission): unknown;
    fromPartial<I extends {
        databaseName?: string | undefined;
        roles?: string[] | undefined;
    } & {
        databaseName?: string | undefined;
        roles?: (string[] & string[] & Record<Exclude<keyof I["roles"], keyof string[]>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof Permission>, never>>(object: I): Permission;
};
export declare const UserSpec: {
    encode(message: UserSpec, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): UserSpec;
    fromJSON(object: any): UserSpec;
    toJSON(message: UserSpec): unknown;
    fromPartial<I extends {
        name?: string | undefined;
        password?: string | undefined;
        permissions?: {
            databaseName?: string | undefined;
            roles?: string[] | undefined;
        }[] | undefined;
    } & {
        name?: string | undefined;
        password?: string | undefined;
        permissions?: ({
            databaseName?: string | undefined;
            roles?: string[] | undefined;
        }[] & ({
            databaseName?: string | undefined;
            roles?: string[] | undefined;
        } & {
            databaseName?: string | undefined;
            roles?: (string[] & string[] & Record<Exclude<keyof I["permissions"][number]["roles"], keyof string[]>, never>) | undefined;
        } & Record<Exclude<keyof I["permissions"][number], keyof Permission>, never>)[] & Record<Exclude<keyof I["permissions"], keyof {
            databaseName?: string | undefined;
            roles?: string[] | undefined;
        }[]>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof UserSpec>, never>>(object: I): UserSpec;
};
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 {};
