import { Schema } from '@tachybase/schema';
import type { DefaultOptionType } from 'antd/lib/cascader';
export interface Option extends DefaultOptionType {
    key?: string | number;
    value?: string | number;
    label: React.ReactNode;
    disabled?: boolean;
    children?: Option[];
    isLeaf?: boolean;
    /** 当开启异步加载时有效，用于加载当前 node 的 children */
    loadChildren?(option: Option): Promise<void>;
    field?: FieldOption;
    depth?: number;
}
export interface FieldOption {
    name?: string;
    type?: string;
    target?: string;
    title?: string;
    schema?: Schema;
    interface?: string;
    operators?: Operator[];
    children?: FieldOption[];
}
interface Operator {
    label: string;
    value: string;
}
export {};
