import { Schema } from 'effect';
import type { Environment } from '../../../../../vendor/cel-js/lib/index.js';
import type { MigrateFn, MigrateSource } from '../../../utils/resolve.js';
export declare const type: "com.shwfed.form.field.combobox.multi";
export declare const compatibilityDate: "2026-05-28";
export declare const metadata: {
    readonly name: "下拉多选";
    readonly icon: "fluent:chevron-down-20-regular";
    readonly w: {
        readonly initial: 8;
        readonly min: 4;
        readonly max: number;
    };
    readonly h: {
        readonly initial: 2;
        readonly min: 2;
        readonly max: 2;
    };
    readonly selection: true;
};
export declare function itemSchema(configure: (env: Environment) => void): Schema.Struct<{
    id: Schema.refine<string, typeof Schema.String>;
    label: Schema.refine<readonly [{
        readonly locale: "zh";
        readonly message: string;
    }, ...{
        readonly locale: "en" | "ja" | "ko";
        readonly message: string;
    }[]], Schema.TupleType<readonly [Schema.Struct<{
        locale: Schema.Literal<["zh"]>;
        message: Schema.SchemaClass<string, string, never>;
    }>], [Schema.Struct<{
        locale: Schema.Literal<["ja", "en", "ko"]>;
        message: Schema.SchemaClass<string, string, never>;
    }>]>>;
    value: Schema.Union<[Schema.Struct<{
        kind: Schema.Literal<["text"]>;
        value: typeof Schema.String;
    }>, Schema.Struct<{
        kind: Schema.Literal<["number"]>;
        value: typeof Schema.Number;
    }>]>;
    tooltip: Schema.optional<Schema.refine<readonly [{
        readonly locale: "zh";
        readonly message: string;
    }, ...{
        readonly locale: "en" | "ja" | "ko";
        readonly message: string;
    }[]], Schema.TupleType<readonly [Schema.Struct<{
        locale: Schema.Literal<["zh"]>;
        message: Schema.SchemaClass<string, string, never>;
    }>], [Schema.Struct<{
        locale: Schema.Literal<["ja", "en", "ko"]>;
        message: Schema.SchemaClass<string, string, never>;
    }>]>>>;
    keywords: Schema.optional<Schema.Array$<typeof Schema.String>>;
}>;
export declare function remoteOptionsSchema(configure: (env: Environment) => void): Schema.Struct<{
    kind: Schema.Literal<["remote"]>;
    request: Schema.optional<Schema.Union<[Schema.Literal<[""]>, Schema.Schema<string, string, never>]>>;
    options: Schema.Schema<string, string, never>;
    optionValue: Schema.optionalWith<Schema.Schema<string, string, never>, {
        default: () => string;
    }>;
    optionLabel: Schema.optionalWith<Schema.refine<readonly [{
        readonly locale: "zh";
        readonly message: string;
    }, ...{
        readonly locale: "en" | "ja" | "ko";
        readonly message: string;
    }[]], Schema.TupleType<readonly [Schema.Struct<{
        locale: Schema.Literal<["zh"]>;
        message: Schema.SchemaClass<string, string, never>;
    }>], [Schema.Struct<{
        locale: Schema.Literal<["ja", "en", "ko"]>;
        message: Schema.SchemaClass<string, string, never>;
    }>]>>, {
        default: () => readonly [{
            readonly locale: "zh";
            readonly message: "";
        }];
    }>;
    optionKeywords: Schema.optional<Schema.Schema<string, string, never>>;
}>;
export declare function optionsSchema(configure: (env: Environment) => void): Schema.Union<[Schema.Struct<{
    kind: Schema.Literal<["static"]>;
    items: Schema.optionalWith<Schema.Array$<Schema.Struct<{
        id: Schema.refine<string, typeof Schema.String>;
        label: Schema.refine<readonly [{
            readonly locale: "zh";
            readonly message: string;
        }, ...{
            readonly locale: "en" | "ja" | "ko";
            readonly message: string;
        }[]], Schema.TupleType<readonly [Schema.Struct<{
            locale: Schema.Literal<["zh"]>;
            message: Schema.SchemaClass<string, string, never>;
        }>], [Schema.Struct<{
            locale: Schema.Literal<["ja", "en", "ko"]>;
            message: Schema.SchemaClass<string, string, never>;
        }>]>>;
        value: Schema.Union<[Schema.Struct<{
            kind: Schema.Literal<["text"]>;
            value: typeof Schema.String;
        }>, Schema.Struct<{
            kind: Schema.Literal<["number"]>;
            value: typeof Schema.Number;
        }>]>;
        tooltip: Schema.optional<Schema.refine<readonly [{
            readonly locale: "zh";
            readonly message: string;
        }, ...{
            readonly locale: "en" | "ja" | "ko";
            readonly message: string;
        }[]], Schema.TupleType<readonly [Schema.Struct<{
            locale: Schema.Literal<["zh"]>;
            message: Schema.SchemaClass<string, string, never>;
        }>], [Schema.Struct<{
            locale: Schema.Literal<["ja", "en", "ko"]>;
            message: Schema.SchemaClass<string, string, never>;
        }>]>>>;
        keywords: Schema.optional<Schema.Array$<typeof Schema.String>>;
    }>>, {
        default: () => readonly [];
    }>;
}>, Schema.Struct<{
    kind: Schema.Literal<["remote"]>;
    request: Schema.optional<Schema.Union<[Schema.Literal<[""]>, Schema.Schema<string, string, never>]>>;
    options: Schema.Schema<string, string, never>;
    optionValue: Schema.optionalWith<Schema.Schema<string, string, never>, {
        default: () => string;
    }>;
    optionLabel: Schema.optionalWith<Schema.refine<readonly [{
        readonly locale: "zh";
        readonly message: string;
    }, ...{
        readonly locale: "en" | "ja" | "ko";
        readonly message: string;
    }[]], Schema.TupleType<readonly [Schema.Struct<{
        locale: Schema.Literal<["zh"]>;
        message: Schema.SchemaClass<string, string, never>;
    }>], [Schema.Struct<{
        locale: Schema.Literal<["ja", "en", "ko"]>;
        message: Schema.SchemaClass<string, string, never>;
    }>]>>, {
        default: () => readonly [{
            readonly locale: "zh";
            readonly message: "";
        }];
    }>;
    optionKeywords: Schema.optional<Schema.Schema<string, string, never>>;
}>]>;
export declare function schema(configure: (env: Environment) => void): Schema.Struct<{
    label: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
        locale: Schema.Literal<["zh"]>;
        message: Schema.SchemaClass<string, string, never>;
    }>], [Schema.Struct<{
        locale: Schema.Literal<["ja", "en", "ko"]>;
        message: Schema.SchemaClass<string, string, never>;
    }>]>>;
    placeholder: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
        locale: Schema.Literal<["zh"]>;
        message: Schema.SchemaClass<string, string, never>;
    }>], [Schema.Struct<{
        locale: Schema.Literal<["ja", "en", "ko"]>;
        message: Schema.SchemaClass<string, string, never>;
    }>]>>;
    tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
        locale: Schema.Literal<["zh"]>;
        message: Schema.SchemaClass<string, string, never>;
    }>], [Schema.Struct<{
        locale: Schema.Literal<["ja", "en", "ko"]>;
        message: Schema.SchemaClass<string, string, never>;
    }>]>>;
    orientation: Schema.optional<Schema.Literal<["vertical", "floating"]>>;
    binding: Schema.optional<Schema.refine<string, typeof Schema.String>>;
    disabled: Schema.optional<Schema.Schema<string, string, never>>;
    readonly: Schema.optional<Schema.Schema<string, string, never>>;
    derived: Schema.optional<Schema.Struct<{
        mode: Schema.Literal<["formula", "prefill"]>;
        expression: Schema.Schema<string, string, never>;
    }>>;
    options: Schema.optionalWith<Schema.Union<[Schema.Struct<{
        kind: Schema.Literal<["static"]>;
        items: Schema.optionalWith<Schema.Array$<Schema.Struct<{
            id: Schema.refine<string, typeof Schema.String>;
            label: Schema.refine<readonly [{
                readonly locale: "zh";
                readonly message: string;
            }, ...{
                readonly locale: "en" | "ja" | "ko";
                readonly message: string;
            }[]], Schema.TupleType<readonly [Schema.Struct<{
                locale: Schema.Literal<["zh"]>;
                message: Schema.SchemaClass<string, string, never>;
            }>], [Schema.Struct<{
                locale: Schema.Literal<["ja", "en", "ko"]>;
                message: Schema.SchemaClass<string, string, never>;
            }>]>>;
            value: Schema.Union<[Schema.Struct<{
                kind: Schema.Literal<["text"]>;
                value: typeof Schema.String;
            }>, Schema.Struct<{
                kind: Schema.Literal<["number"]>;
                value: typeof Schema.Number;
            }>]>;
            tooltip: Schema.optional<Schema.refine<readonly [{
                readonly locale: "zh";
                readonly message: string;
            }, ...{
                readonly locale: "en" | "ja" | "ko";
                readonly message: string;
            }[]], Schema.TupleType<readonly [Schema.Struct<{
                locale: Schema.Literal<["zh"]>;
                message: Schema.SchemaClass<string, string, never>;
            }>], [Schema.Struct<{
                locale: Schema.Literal<["ja", "en", "ko"]>;
                message: Schema.SchemaClass<string, string, never>;
            }>]>>>;
            keywords: Schema.optional<Schema.Array$<typeof Schema.String>>;
        }>>, {
            default: () => readonly [];
        }>;
    }>, Schema.Struct<{
        kind: Schema.Literal<["remote"]>;
        request: Schema.optional<Schema.Union<[Schema.Literal<[""]>, Schema.Schema<string, string, never>]>>;
        options: Schema.Schema<string, string, never>;
        optionValue: Schema.optionalWith<Schema.Schema<string, string, never>, {
            default: () => string;
        }>;
        optionLabel: Schema.optionalWith<Schema.refine<readonly [{
            readonly locale: "zh";
            readonly message: string;
        }, ...{
            readonly locale: "en" | "ja" | "ko";
            readonly message: string;
        }[]], Schema.TupleType<readonly [Schema.Struct<{
            locale: Schema.Literal<["zh"]>;
            message: Schema.SchemaClass<string, string, never>;
        }>], [Schema.Struct<{
            locale: Schema.Literal<["ja", "en", "ko"]>;
            message: Schema.SchemaClass<string, string, never>;
        }>]>>, {
            default: () => readonly [{
                readonly locale: "zh";
                readonly message: "";
            }];
        }>;
        optionKeywords: Schema.optional<Schema.Schema<string, string, never>>;
    }>]>, {
        default: () => {
            kind: "static";
            items: readonly [];
        };
    }>;
    id: Schema.refine<string, typeof Schema.String>;
    displayName: Schema.optional<Schema.SchemaClass<string, string, never>>;
    hidden: Schema.optional<Schema.Schema<string, string, never>>;
    required: Schema.optional<Schema.Schema<string, string, never>>;
    validations: Schema.optional<Schema.Array$<Schema.Struct<{
        when: Schema.Schema<string, string, never>;
        warning: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
        message: Schema.refine<readonly [{
            readonly locale: "zh";
            readonly message: string;
        }, ...{
            readonly locale: "en" | "ja" | "ko";
            readonly message: string;
        }[]], Schema.TupleType<readonly [Schema.Struct<{
            locale: Schema.Literal<["zh"]>;
            message: Schema.SchemaClass<string, string, never>;
        }>], [Schema.Struct<{
            locale: Schema.Literal<["ja", "en", "ko"]>;
            message: Schema.SchemaClass<string, string, never>;
        }>]>>;
    }>>>;
    type: Schema.Literal<["com.shwfed.form.field.combobox.multi"]>;
    compatibilityDate: Schema.Literal<["2026-05-28"]>;
}>;
export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
export declare function defaults(): Partial<Value>;
export declare const migrateFrom: ReadonlyArray<MigrateSource>;
export declare const migrate: MigrateFn;
