/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
 * For more information, please refer to: https://www.nocobase.com/agreement.
 */
import { CascaderProps as AntdCascaderProps } from 'antd';
import { BaseOptionType } from 'antd/es/select';
import React from 'react';
import { UseRequestResult } from '../../../api-client';
export type CascaderProps<DataNodeType extends BaseOptionType = any> = AntdCascaderProps<DataNodeType> & {
    /**
     * @deprecated use `x-use-component-props` instead
     */
    useLoadData: (props: CascaderProps) => AntdCascaderProps['loadData'];
    /**
     * @deprecated use `x-use-component-props` instead
     */
    useDataSource?: (options: any) => UseRequestResult<unknown>;
    /**
     * Whether to wrap the label of option into the value
     */
    labelInValue?: boolean;
    /**
     * must select the last level
     */
    changeOnSelectLast?: boolean;
    onChange?: (value: any) => void;
    maxLevel?: number;
};
export declare const Cascader: React.FunctionComponent<Partial<AntdCascaderProps<any, string | number | symbol, boolean> & {
    /**
     * @deprecated use `x-use-component-props` instead
     */
    useLoadData: (props: CascaderProps) => AntdCascaderProps['loadData'];
    /**
     * @deprecated use `x-use-component-props` instead
     */
    useDataSource?: (options: any) => UseRequestResult<unknown>;
    /**
     * Whether to wrap the label of option into the value
     */
    labelInValue?: boolean;
    /**
     * must select the last level
     */
    changeOnSelectLast?: boolean;
    onChange?: (value: any) => void;
    maxLevel?: number;
}> & React.RefAttributes<unknown>>;
export default Cascader;
