import { Schema } from 'effect';
import type { ColumnDef } from '@tanstack/vue-table';
import type { Environment } from '../../../../../vendor/cel-js/lib/index.js';
import type { ColumnDefDeps, MigrateFn, MigrateSource } from '../../../utils/resolve.js';
export declare const type: "com.shwfed.table.column.combobox-single.remote";
export declare const compatibilityDate: "2026-05-26";
export declare const metadata: {
    readonly name: "单选（远程）";
    readonly icon: "fluent:cloud-arrow-up-20-regular";
};
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>;
    }>]>>>;
}>;
export declare function remoteOptionsSchema(configure: (env: Environment) => void): Schema.Struct<{
    kind: Schema.Literal<["remote"]>;
    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: "";
        }];
    }>;
}>;
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>;
        }>]>>>;
    }>>, {
        default: () => readonly [];
    }>;
}>, Schema.Struct<{
    kind: Schema.Literal<["remote"]>;
    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: "";
        }];
    }>;
}>]>;
export declare function schema(configure: (env: Environment) => void): Schema.Struct<{
    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>;
    }>]>>;
    hidden: Schema.optional<Schema.Schema<string, string, never>>;
    disabled: Schema.optional<Schema.Schema<string, string, never>>;
    readonly: Schema.optional<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>;
            }>]>>>;
        }>>, {
            default: () => readonly [];
        }>;
    }>, Schema.Struct<{
        kind: Schema.Literal<["remote"]>;
        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: "";
            }];
        }>;
    }>]>, {
        default: () => {
            kind: "static";
            items: readonly [];
        };
    }>;
    onChange: Schema.optional<Schema.Schema<string, string, never>>;
    successMessage: Schema.optional<Schema.Schema<string, string, never>>;
    triggers: Schema.optional<Schema.Array$<Schema.Struct<{
        target: Schema.refine<string, typeof Schema.String>;
        operation: Schema.SchemaClass<string, string, never>;
    }>>>;
    title: 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>;
    }>]>;
    accessor: Schema.Schema<string, string, never>;
    enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
    sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
    size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
    grow: Schema.optional<Schema.SchemaClass<boolean, boolean, 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>;
    }>]>>;
    id: Schema.refine<string, typeof Schema.String>;
    groupId: Schema.optional<typeof Schema.UUID>;
    type: Schema.Literal<["com.shwfed.table.column.combobox-single.remote"]>;
    compatibilityDate: Schema.Literal<["2026-05-26"]>;
}>;
export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
export declare const migrateFrom: ReadonlyArray<MigrateSource>;
export declare const migrate: MigrateFn;
export declare function toColumnDef(value: Value, { getLocaleText, $cel, inheritedContext }: ColumnDefDeps): Partial<ColumnDef<unknown, unknown>>;
