/// <reference types="node" />
import _m0 from 'protobufjs/minimal';
export declare const protobufPackage = "yandex.cloud.mdb.opensearch.v1";
export interface AuthSettings {
    /** SAML settings */
    saml?: SAMLSettings;
}
export interface SAMLSettings {
    enabled: boolean;
    /** Required. The entity ID of your IdP. */
    idpEntityId: string;
    /** Required. The SAML 2.0 metadata file of your IdP. */
    idpMetadataFile: Buffer;
    /** Required. The entity ID of the service provider. */
    spEntityId: string;
    /** Required. The OpenSearch Dashboards base URL. */
    dashboardsUrl: string;
    /** Optional. The attribute in the SAML response where the roles are stored. If not configured, no roles are used. */
    rolesKey: string;
    /** Optional. The attribute in the SAML response where the subject is stored. If not configured, the NameID attribute is used. */
    subjectKey: string;
    /** default jwt expiration timeout. */
    jwtDefaultExpirationTimeout?: number;
}
export declare const AuthSettings: {
    encode(message: AuthSettings, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): AuthSettings;
    fromJSON(object: any): AuthSettings;
    toJSON(message: AuthSettings): unknown;
    fromPartial<I extends {
        saml?: {
            enabled?: boolean | undefined;
            idpEntityId?: string | undefined;
            idpMetadataFile?: Buffer | undefined;
            spEntityId?: string | undefined;
            dashboardsUrl?: string | undefined;
            rolesKey?: string | undefined;
            subjectKey?: string | undefined;
            jwtDefaultExpirationTimeout?: number | undefined;
        } | undefined;
    } & {
        saml?: ({
            enabled?: boolean | undefined;
            idpEntityId?: string | undefined;
            idpMetadataFile?: Buffer | undefined;
            spEntityId?: string | undefined;
            dashboardsUrl?: string | undefined;
            rolesKey?: string | undefined;
            subjectKey?: string | undefined;
            jwtDefaultExpirationTimeout?: number | undefined;
        } & {
            enabled?: boolean | undefined;
            idpEntityId?: string | undefined;
            idpMetadataFile?: Buffer | undefined;
            spEntityId?: string | undefined;
            dashboardsUrl?: string | undefined;
            rolesKey?: string | undefined;
            subjectKey?: string | undefined;
            jwtDefaultExpirationTimeout?: number | undefined;
        } & Record<Exclude<keyof I["saml"], keyof SAMLSettings>, never>) | undefined;
    } & Record<Exclude<keyof I, "saml">, never>>(object: I): AuthSettings;
};
export declare const SAMLSettings: {
    encode(message: SAMLSettings, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): SAMLSettings;
    fromJSON(object: any): SAMLSettings;
    toJSON(message: SAMLSettings): unknown;
    fromPartial<I extends {
        enabled?: boolean | undefined;
        idpEntityId?: string | undefined;
        idpMetadataFile?: Buffer | undefined;
        spEntityId?: string | undefined;
        dashboardsUrl?: string | undefined;
        rolesKey?: string | undefined;
        subjectKey?: string | undefined;
        jwtDefaultExpirationTimeout?: number | undefined;
    } & {
        enabled?: boolean | undefined;
        idpEntityId?: string | undefined;
        idpMetadataFile?: Buffer | undefined;
        spEntityId?: string | undefined;
        dashboardsUrl?: string | undefined;
        rolesKey?: string | undefined;
        subjectKey?: string | undefined;
        jwtDefaultExpirationTimeout?: number | undefined;
    } & Record<Exclude<keyof I, keyof SAMLSettings>, never>>(object: I): SAMLSettings;
};
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 {};
