import _m0 from 'protobufjs/minimal';
export declare const protobufPackage = "yandex.cloud.mdb.redis.v1";
/**
 * A Redis User resource. For more information, see the
 * [Developer's Guide](/docs/managed-redis/concepts).
 */
export interface User {
    /** Name of the Redis user. */
    name: string;
    /** ID of the Redis cluster the user belongs to. */
    clusterId: string;
    /** Set of permissions to grant to the user. */
    permissions?: Permissions;
    /** Is redis user enabled */
    enabled: boolean;
    /** Raw ACL string inside of Redis */
    aclOptions: string;
}
export interface Permissions {
    /** Keys patterns user has permission to. */
    patterns?: string;
    /** Channel patterns user has permissions to. */
    pubSubChannels?: string;
    /** Command categories user has permissions to. */
    categories?: string;
    /** Commands user can execute. */
    commands?: string;
    /** SanitizePayload parameter. */
    sanitizePayload?: string;
}
export interface UserSpec {
    /** Name of the Redis user. */
    name: string;
    /** Password of the Redis user. */
    passwords: string[];
    /** Set of permissions to grant to the user. */
    permissions?: Permissions;
    /** Is Redis user enabled */
    enabled?: boolean;
}
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?: {
            patterns?: string | undefined;
            pubSubChannels?: string | undefined;
            categories?: string | undefined;
            commands?: string | undefined;
            sanitizePayload?: string | undefined;
        } | undefined;
        enabled?: boolean | undefined;
        aclOptions?: string | undefined;
    } & {
        name?: string | undefined;
        clusterId?: string | undefined;
        permissions?: ({
            patterns?: string | undefined;
            pubSubChannels?: string | undefined;
            categories?: string | undefined;
            commands?: string | undefined;
            sanitizePayload?: string | undefined;
        } & {
            patterns?: string | undefined;
            pubSubChannels?: string | undefined;
            categories?: string | undefined;
            commands?: string | undefined;
            sanitizePayload?: string | undefined;
        } & Record<Exclude<keyof I["permissions"], keyof Permissions>, never>) | undefined;
        enabled?: boolean | undefined;
        aclOptions?: string | undefined;
    } & Record<Exclude<keyof I, keyof User>, never>>(object: I): User;
};
export declare const Permissions: {
    encode(message: Permissions, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Permissions;
    fromJSON(object: any): Permissions;
    toJSON(message: Permissions): unknown;
    fromPartial<I extends {
        patterns?: string | undefined;
        pubSubChannels?: string | undefined;
        categories?: string | undefined;
        commands?: string | undefined;
        sanitizePayload?: string | undefined;
    } & {
        patterns?: string | undefined;
        pubSubChannels?: string | undefined;
        categories?: string | undefined;
        commands?: string | undefined;
        sanitizePayload?: string | undefined;
    } & Record<Exclude<keyof I, keyof Permissions>, never>>(object: I): Permissions;
};
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;
        passwords?: string[] | undefined;
        permissions?: {
            patterns?: string | undefined;
            pubSubChannels?: string | undefined;
            categories?: string | undefined;
            commands?: string | undefined;
            sanitizePayload?: string | undefined;
        } | undefined;
        enabled?: boolean | undefined;
    } & {
        name?: string | undefined;
        passwords?: (string[] & string[] & Record<Exclude<keyof I["passwords"], keyof string[]>, never>) | undefined;
        permissions?: ({
            patterns?: string | undefined;
            pubSubChannels?: string | undefined;
            categories?: string | undefined;
            commands?: string | undefined;
            sanitizePayload?: string | undefined;
        } & {
            patterns?: string | undefined;
            pubSubChannels?: string | undefined;
            categories?: string | undefined;
            commands?: string | undefined;
            sanitizePayload?: string | undefined;
        } & Record<Exclude<keyof I["permissions"], keyof Permissions>, never>) | undefined;
        enabled?: boolean | 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 {};
