import { Schema } from 'effect';
import type { Environment } from '../../../../../vendor/cel-js/lib/index.js';
export declare const type: "com.shwfed.form.field.combobox.single.remote";
export declare const compatibilityDate: "2026-05-13";
export declare const metadata: {
    readonly name: "下拉单选（远程）";
    readonly icon: "fluent:cloud-arrow-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;
    };
};
export declare const OPTION_VAR: {
    readonly type: "dyn";
    readonly label: "当前选项";
    readonly description: "`选项` 表达式产出的数组中迭代到的单个元素";
};
export declare const JSON_VAR: {
    readonly type: "dyn";
    readonly label: "HTTP 响应体";
    readonly description: "HTTP 响应体（已解析 JSON）；请求失败或尚未完成时为 `null`";
};
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>;
    }>>;
    request: 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: "";
        }];
    }>;
    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.single.remote"]>;
    compatibilityDate: Schema.Literal<["2026-05-13"]>;
}>;
export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
