import _m0 from 'protobufjs/minimal';
export declare const protobufPackage = "yandex.cloud.mdb.redis.v1.config";
/**
 * Fields and structure of `RedisConfig` reflects Redis configuration file
 * parameters.
 */
export interface Redisconfig60 {
    /**
     * Redis key eviction policy for a dataset that reaches maximum memory,
     * available to the host. Redis maxmemory setting depends on Managed
     * Service for Redis [host class](/docs/managed-redis/concepts/instance-types).
     *
     * All policies are described in detail in [Redis documentation](https://redis.io/topics/lru-cache).
     */
    maxmemoryPolicy: Redisconfig60_MaxmemoryPolicy;
    /**
     * Time that Redis keeps the connection open while the client is idle.
     * If no new command is sent during that time, the connection is closed.
     */
    timeout?: number;
    /** Authentication password. */
    password: string;
    /** Number of database buckets on a single redis-server process. */
    databases?: number;
    /** Threshold for logging slow requests to server in microseconds (log only slower than it). */
    slowlogLogSlowerThan?: number;
    /** Max slow requests number to log. */
    slowlogMaxLen?: number;
    /** String setting for pub\sub functionality. */
    notifyKeyspaceEvents: string;
    /** Redis connection output buffers limits for pubsub operations. */
    clientOutputBufferLimitPubsub?: Redisconfig60_ClientOutputBufferLimit;
    /** Redis connection output buffers limits for clients. */
    clientOutputBufferLimitNormal?: Redisconfig60_ClientOutputBufferLimit;
}
export declare enum Redisconfig60_MaxmemoryPolicy {
    MAXMEMORY_POLICY_UNSPECIFIED = 0,
    /** VOLATILE_LRU - Try to remove less recently used (LRU) keys with `expire set`. */
    VOLATILE_LRU = 1,
    /** ALLKEYS_LRU - Remove less recently used (LRU) keys. */
    ALLKEYS_LRU = 2,
    /** VOLATILE_LFU - Try to remove least frequently used (LFU) keys with `expire set`. */
    VOLATILE_LFU = 3,
    /** ALLKEYS_LFU - Remove least frequently used (LFU) keys. */
    ALLKEYS_LFU = 4,
    /** VOLATILE_RANDOM - Try to remove keys with `expire set` randomly. */
    VOLATILE_RANDOM = 5,
    /** ALLKEYS_RANDOM - Remove keys randomly. */
    ALLKEYS_RANDOM = 6,
    /**
     * VOLATILE_TTL - Try to remove less recently used (LRU) keys with `expire set`
     * and shorter TTL first.
     */
    VOLATILE_TTL = 7,
    /**
     * NOEVICTION - Return errors when memory limit was reached and commands could require
     * more memory to be used.
     */
    NOEVICTION = 8,
    UNRECOGNIZED = -1
}
export declare function redisconfig60_MaxmemoryPolicyFromJSON(object: any): Redisconfig60_MaxmemoryPolicy;
export declare function redisconfig60_MaxmemoryPolicyToJSON(object: Redisconfig60_MaxmemoryPolicy): string;
export interface Redisconfig60_ClientOutputBufferLimit {
    /** Total limit in bytes. */
    hardLimit?: number;
    /** Limit in bytes during certain time period. */
    softLimit?: number;
    /** Seconds for soft limit. */
    softSeconds?: number;
}
export interface Redisconfigset60 {
    /**
     * Effective settings for a Redis 6.0 cluster (a combination of settings
     * defined in [user_config] and [default_config]).
     */
    effectiveConfig?: Redisconfig60;
    /** User-defined settings for a Redis 6.0 cluster. */
    userConfig?: Redisconfig60;
    /** Default configuration for a Redis 6.0 cluster. */
    defaultConfig?: Redisconfig60;
}
export declare const Redisconfig60: {
    encode(message: Redisconfig60, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Redisconfig60;
    fromJSON(object: any): Redisconfig60;
    toJSON(message: Redisconfig60): unknown;
    fromPartial<I extends {
        maxmemoryPolicy?: Redisconfig60_MaxmemoryPolicy | undefined;
        timeout?: number | undefined;
        password?: string | undefined;
        databases?: number | undefined;
        slowlogLogSlowerThan?: number | undefined;
        slowlogMaxLen?: number | undefined;
        notifyKeyspaceEvents?: string | undefined;
        clientOutputBufferLimitPubsub?: {
            hardLimit?: number | undefined;
            softLimit?: number | undefined;
            softSeconds?: number | undefined;
        } | undefined;
        clientOutputBufferLimitNormal?: {
            hardLimit?: number | undefined;
            softLimit?: number | undefined;
            softSeconds?: number | undefined;
        } | undefined;
    } & {
        maxmemoryPolicy?: Redisconfig60_MaxmemoryPolicy | undefined;
        timeout?: number | undefined;
        password?: string | undefined;
        databases?: number | undefined;
        slowlogLogSlowerThan?: number | undefined;
        slowlogMaxLen?: number | undefined;
        notifyKeyspaceEvents?: string | undefined;
        clientOutputBufferLimitPubsub?: ({
            hardLimit?: number | undefined;
            softLimit?: number | undefined;
            softSeconds?: number | undefined;
        } & {
            hardLimit?: number | undefined;
            softLimit?: number | undefined;
            softSeconds?: number | undefined;
        } & Record<Exclude<keyof I["clientOutputBufferLimitPubsub"], keyof Redisconfig60_ClientOutputBufferLimit>, never>) | undefined;
        clientOutputBufferLimitNormal?: ({
            hardLimit?: number | undefined;
            softLimit?: number | undefined;
            softSeconds?: number | undefined;
        } & {
            hardLimit?: number | undefined;
            softLimit?: number | undefined;
            softSeconds?: number | undefined;
        } & Record<Exclude<keyof I["clientOutputBufferLimitNormal"], keyof Redisconfig60_ClientOutputBufferLimit>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof Redisconfig60>, never>>(object: I): Redisconfig60;
};
export declare const Redisconfig60_ClientOutputBufferLimit: {
    encode(message: Redisconfig60_ClientOutputBufferLimit, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Redisconfig60_ClientOutputBufferLimit;
    fromJSON(object: any): Redisconfig60_ClientOutputBufferLimit;
    toJSON(message: Redisconfig60_ClientOutputBufferLimit): unknown;
    fromPartial<I extends {
        hardLimit?: number | undefined;
        softLimit?: number | undefined;
        softSeconds?: number | undefined;
    } & {
        hardLimit?: number | undefined;
        softLimit?: number | undefined;
        softSeconds?: number | undefined;
    } & Record<Exclude<keyof I, keyof Redisconfig60_ClientOutputBufferLimit>, never>>(object: I): Redisconfig60_ClientOutputBufferLimit;
};
export declare const Redisconfigset60: {
    encode(message: Redisconfigset60, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Redisconfigset60;
    fromJSON(object: any): Redisconfigset60;
    toJSON(message: Redisconfigset60): unknown;
    fromPartial<I extends {
        effectiveConfig?: {
            maxmemoryPolicy?: Redisconfig60_MaxmemoryPolicy | undefined;
            timeout?: number | undefined;
            password?: string | undefined;
            databases?: number | undefined;
            slowlogLogSlowerThan?: number | undefined;
            slowlogMaxLen?: number | undefined;
            notifyKeyspaceEvents?: string | undefined;
            clientOutputBufferLimitPubsub?: {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } | undefined;
            clientOutputBufferLimitNormal?: {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } | undefined;
        } | undefined;
        userConfig?: {
            maxmemoryPolicy?: Redisconfig60_MaxmemoryPolicy | undefined;
            timeout?: number | undefined;
            password?: string | undefined;
            databases?: number | undefined;
            slowlogLogSlowerThan?: number | undefined;
            slowlogMaxLen?: number | undefined;
            notifyKeyspaceEvents?: string | undefined;
            clientOutputBufferLimitPubsub?: {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } | undefined;
            clientOutputBufferLimitNormal?: {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } | undefined;
        } | undefined;
        defaultConfig?: {
            maxmemoryPolicy?: Redisconfig60_MaxmemoryPolicy | undefined;
            timeout?: number | undefined;
            password?: string | undefined;
            databases?: number | undefined;
            slowlogLogSlowerThan?: number | undefined;
            slowlogMaxLen?: number | undefined;
            notifyKeyspaceEvents?: string | undefined;
            clientOutputBufferLimitPubsub?: {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } | undefined;
            clientOutputBufferLimitNormal?: {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } | undefined;
        } | undefined;
    } & {
        effectiveConfig?: ({
            maxmemoryPolicy?: Redisconfig60_MaxmemoryPolicy | undefined;
            timeout?: number | undefined;
            password?: string | undefined;
            databases?: number | undefined;
            slowlogLogSlowerThan?: number | undefined;
            slowlogMaxLen?: number | undefined;
            notifyKeyspaceEvents?: string | undefined;
            clientOutputBufferLimitPubsub?: {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } | undefined;
            clientOutputBufferLimitNormal?: {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } | undefined;
        } & {
            maxmemoryPolicy?: Redisconfig60_MaxmemoryPolicy | undefined;
            timeout?: number | undefined;
            password?: string | undefined;
            databases?: number | undefined;
            slowlogLogSlowerThan?: number | undefined;
            slowlogMaxLen?: number | undefined;
            notifyKeyspaceEvents?: string | undefined;
            clientOutputBufferLimitPubsub?: ({
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } & {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } & Record<Exclude<keyof I["effectiveConfig"]["clientOutputBufferLimitPubsub"], keyof Redisconfig60_ClientOutputBufferLimit>, never>) | undefined;
            clientOutputBufferLimitNormal?: ({
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } & {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } & Record<Exclude<keyof I["effectiveConfig"]["clientOutputBufferLimitNormal"], keyof Redisconfig60_ClientOutputBufferLimit>, never>) | undefined;
        } & Record<Exclude<keyof I["effectiveConfig"], keyof Redisconfig60>, never>) | undefined;
        userConfig?: ({
            maxmemoryPolicy?: Redisconfig60_MaxmemoryPolicy | undefined;
            timeout?: number | undefined;
            password?: string | undefined;
            databases?: number | undefined;
            slowlogLogSlowerThan?: number | undefined;
            slowlogMaxLen?: number | undefined;
            notifyKeyspaceEvents?: string | undefined;
            clientOutputBufferLimitPubsub?: {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } | undefined;
            clientOutputBufferLimitNormal?: {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } | undefined;
        } & {
            maxmemoryPolicy?: Redisconfig60_MaxmemoryPolicy | undefined;
            timeout?: number | undefined;
            password?: string | undefined;
            databases?: number | undefined;
            slowlogLogSlowerThan?: number | undefined;
            slowlogMaxLen?: number | undefined;
            notifyKeyspaceEvents?: string | undefined;
            clientOutputBufferLimitPubsub?: ({
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } & {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } & Record<Exclude<keyof I["userConfig"]["clientOutputBufferLimitPubsub"], keyof Redisconfig60_ClientOutputBufferLimit>, never>) | undefined;
            clientOutputBufferLimitNormal?: ({
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } & {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } & Record<Exclude<keyof I["userConfig"]["clientOutputBufferLimitNormal"], keyof Redisconfig60_ClientOutputBufferLimit>, never>) | undefined;
        } & Record<Exclude<keyof I["userConfig"], keyof Redisconfig60>, never>) | undefined;
        defaultConfig?: ({
            maxmemoryPolicy?: Redisconfig60_MaxmemoryPolicy | undefined;
            timeout?: number | undefined;
            password?: string | undefined;
            databases?: number | undefined;
            slowlogLogSlowerThan?: number | undefined;
            slowlogMaxLen?: number | undefined;
            notifyKeyspaceEvents?: string | undefined;
            clientOutputBufferLimitPubsub?: {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } | undefined;
            clientOutputBufferLimitNormal?: {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } | undefined;
        } & {
            maxmemoryPolicy?: Redisconfig60_MaxmemoryPolicy | undefined;
            timeout?: number | undefined;
            password?: string | undefined;
            databases?: number | undefined;
            slowlogLogSlowerThan?: number | undefined;
            slowlogMaxLen?: number | undefined;
            notifyKeyspaceEvents?: string | undefined;
            clientOutputBufferLimitPubsub?: ({
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } & {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } & Record<Exclude<keyof I["defaultConfig"]["clientOutputBufferLimitPubsub"], keyof Redisconfig60_ClientOutputBufferLimit>, never>) | undefined;
            clientOutputBufferLimitNormal?: ({
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } & {
                hardLimit?: number | undefined;
                softLimit?: number | undefined;
                softSeconds?: number | undefined;
            } & Record<Exclude<keyof I["defaultConfig"]["clientOutputBufferLimitNormal"], keyof Redisconfig60_ClientOutputBufferLimit>, never>) | undefined;
        } & Record<Exclude<keyof I["defaultConfig"], keyof Redisconfig60>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof Redisconfigset60>, never>>(object: I): Redisconfigset60;
};
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 {};
