import { Schema } from 'effect';
import type { Environment } from '../../../../../vendor/cel-js/lib/index.js';
export declare const type: "com.shwfed.form.field.upload";
export declare const compatibilityDate: "2026-05-12";
export declare const metadata: {
    readonly name: "文件上传";
    readonly icon: "fluent:cloud-arrow-up-20-regular";
    readonly w: {
        readonly initial: 8;
        readonly min: 8;
        readonly max: number;
    };
    readonly h: {
        readonly initial: 6;
        readonly min: 6;
        readonly max: number;
        readonly grow: true;
    };
};
export declare const JSON_VAR: {
    readonly type: "dyn";
    readonly label: "HTTP 响应体";
    readonly description: "第一步 `请求` 的响应体（已解析 JSON）；用于构造第二步下载请求";
};
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>;
    }>]>>;
    description: 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>;
    }>]>>>;
    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>>;
    multiple: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
    accept: Schema.optional<Schema.Array$<typeof Schema.String>>;
    maxFileSize: Schema.optional<Schema.refine<number, typeof Schema.Number>>;
    maxTotalSize: Schema.optional<Schema.refine<number, typeof Schema.Number>>;
    maxFiles: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
    template: Schema.optional<Schema.Struct<{
        request: Schema.Schema<string, string, never>;
        download: Schema.optional<Schema.Schema<string, string, never>>;
    }>>;
    templateIcon: Schema.optional<Schema.refine<string, typeof Schema.String>>;
    templateLabel: 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>;
    }>]>>;
    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.upload"]>;
    compatibilityDate: Schema.Literal<["2026-05-12"]>;
}>;
export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
