import _m0 from 'protobufjs/minimal';
import { Origin } from '../../../../yandex/cloud/cdn/v1/origin';
export declare const protobufPackage = "yandex.cloud.cdn.v1";
/** Origin group parameters. For details about the concept, see [documentation](/docs/cdn/concepts/origins#groups). */
export interface OriginGroup {
    /** ID of the origin group. Generated at creation time. */
    id: number;
    /** ID of the folder that the origin group belongs to. */
    folderId: string;
    /** Name of the origin group. */
    name: string;
    /**
     * This option have two possible conditions:
     * true - the option is active. In case the origin responds with 4XX or 5XX codes,
     *        use the next origin from the list.
     * false - the option is disabled.
     */
    useNext: boolean;
    /** List of origins. */
    origins: Origin[];
}
export declare const OriginGroup: {
    encode(message: OriginGroup, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): OriginGroup;
    fromJSON(object: any): OriginGroup;
    toJSON(message: OriginGroup): unknown;
    fromPartial<I extends {
        id?: number | undefined;
        folderId?: string | undefined;
        name?: string | undefined;
        useNext?: boolean | undefined;
        origins?: {
            id?: number | undefined;
            originGroupId?: number | undefined;
            source?: string | undefined;
            enabled?: boolean | undefined;
            backup?: boolean | undefined;
            meta?: {
                common?: {
                    name?: string | undefined;
                } | undefined;
                bucket?: {
                    name?: string | undefined;
                } | undefined;
                website?: {
                    name?: string | undefined;
                } | undefined;
                balancer?: {
                    id?: string | undefined;
                } | undefined;
            } | undefined;
        }[] | undefined;
    } & {
        id?: number | undefined;
        folderId?: string | undefined;
        name?: string | undefined;
        useNext?: boolean | undefined;
        origins?: ({
            id?: number | undefined;
            originGroupId?: number | undefined;
            source?: string | undefined;
            enabled?: boolean | undefined;
            backup?: boolean | undefined;
            meta?: {
                common?: {
                    name?: string | undefined;
                } | undefined;
                bucket?: {
                    name?: string | undefined;
                } | undefined;
                website?: {
                    name?: string | undefined;
                } | undefined;
                balancer?: {
                    id?: string | undefined;
                } | undefined;
            } | undefined;
        }[] & ({
            id?: number | undefined;
            originGroupId?: number | undefined;
            source?: string | undefined;
            enabled?: boolean | undefined;
            backup?: boolean | undefined;
            meta?: {
                common?: {
                    name?: string | undefined;
                } | undefined;
                bucket?: {
                    name?: string | undefined;
                } | undefined;
                website?: {
                    name?: string | undefined;
                } | undefined;
                balancer?: {
                    id?: string | undefined;
                } | undefined;
            } | undefined;
        } & {
            id?: number | undefined;
            originGroupId?: number | undefined;
            source?: string | undefined;
            enabled?: boolean | undefined;
            backup?: boolean | undefined;
            meta?: ({
                common?: {
                    name?: string | undefined;
                } | undefined;
                bucket?: {
                    name?: string | undefined;
                } | undefined;
                website?: {
                    name?: string | undefined;
                } | undefined;
                balancer?: {
                    id?: string | undefined;
                } | undefined;
            } & {
                common?: ({
                    name?: string | undefined;
                } & {
                    name?: string | undefined;
                } & Record<Exclude<keyof I["origins"][number]["meta"]["common"], "name">, never>) | undefined;
                bucket?: ({
                    name?: string | undefined;
                } & {
                    name?: string | undefined;
                } & Record<Exclude<keyof I["origins"][number]["meta"]["bucket"], "name">, never>) | undefined;
                website?: ({
                    name?: string | undefined;
                } & {
                    name?: string | undefined;
                } & Record<Exclude<keyof I["origins"][number]["meta"]["website"], "name">, never>) | undefined;
                balancer?: ({
                    id?: string | undefined;
                } & {
                    id?: string | undefined;
                } & Record<Exclude<keyof I["origins"][number]["meta"]["balancer"], "id">, never>) | undefined;
            } & Record<Exclude<keyof I["origins"][number]["meta"], keyof import("../../../../yandex/cloud/cdn/v1/origin").OriginMeta>, never>) | undefined;
        } & Record<Exclude<keyof I["origins"][number], keyof Origin>, never>)[] & Record<Exclude<keyof I["origins"], keyof {
            id?: number | undefined;
            originGroupId?: number | undefined;
            source?: string | undefined;
            enabled?: boolean | undefined;
            backup?: boolean | undefined;
            meta?: {
                common?: {
                    name?: string | undefined;
                } | undefined;
                bucket?: {
                    name?: string | undefined;
                } | undefined;
                website?: {
                    name?: string | undefined;
                } | undefined;
                balancer?: {
                    id?: string | undefined;
                } | undefined;
            } | undefined;
        }[]>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof OriginGroup>, never>>(object: I): OriginGroup;
};
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 {};
