/**
 * 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 type { SelectProps as AntdSelectProps } from 'antd';
import { BaseOptionType, DefaultOptionType } from 'antd/es/select';
import React from 'react';
import { ReadPretty } from './ReadPretty';
import { FieldNames } from './utils';
export type SelectProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> = AntdSelectProps<ValueType, OptionType> & {
    /**
     * Whether it is an object value
     */
    objectValue?: boolean;
    onChange?: (v: any) => void;
    multiple: boolean;
    rawOptions: any[];
    /**
     * format options
     * @default { label: 'label', value: 'value', color: 'color', options: 'children' }
     */
    fieldNames?: FieldNames;
};
export declare const Select: React.ForwardRefExoticComponent<Partial<AntdSelectProps<any, DefaultOptionType> & {
    /**
     * Whether it is an object value
     */
    objectValue?: boolean;
    onChange?: (v: any) => void;
    multiple: boolean;
    rawOptions: any[];
    /**
     * format options
     * @default { label: 'label', value: 'value', color: 'color', options: 'children' }
     */
    fieldNames?: FieldNames;
}> & React.RefAttributes<unknown>> & {
    ReadPretty: typeof ReadPretty;
};
export default Select;
