import { Schema } from 'effect';
import type { Environment } from '../../../../../vendor/cel-js/lib/index.js';
export declare const type: "com.shwfed.form.field.datetime";
export declare const compatibilityDate: "2026-04-27";
export declare const metadata: {
    readonly name: "日期时间";
    readonly icon: "fluent:calendar-clock-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 TIME_GRANULARITIES: readonly ["hour", "minute", "second"];
export type TimeGranularity = typeof TIME_GRANULARITIES[number];
export declare const TIME_GRANULARITY_OPTIONS: ReadonlyArray<{
    value: TimeGranularity;
    label: string;
}>;
export declare const HOUR_CYCLE_OPTIONS: ReadonlyArray<{
    value: 12 | 24;
    label: string;
}>;
export declare function presetSchema(configure: (env: Environment) => void): Schema.Struct<{
    id: Schema.refine<string, typeof Schema.String>;
    label: 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.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>;
    }>>;
    format: Schema.optional<Schema.refine<string, typeof Schema.String>>;
    valueFormat: Schema.optional<Schema.refine<string, typeof Schema.String>>;
    timeGranularity: Schema.optional<Schema.Literal<["hour", "minute", "second"]>>;
    hourCycle: Schema.optional<Schema.Literal<[12, 24]>>;
    presets: Schema.optional<Schema.Array$<Schema.Struct<{
        id: Schema.refine<string, typeof Schema.String>;
        label: 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.Schema<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.datetime"]>;
    compatibilityDate: Schema.Literal<["2026-04-27"]>;
}>;
export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
