/**
 * 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 React from 'react';
import { ResourceActionOptions } from '../../../api-client';
import { FieldNames, SelectProps } from '../select';
import { ReadPretty } from './ReadPretty';
export type RemoteSelectProps<P = any> = SelectProps<P, any> & {
    onChange?: (v: any) => void;
    /**
     * useRequest() `debounceWait` parameter
     */
    wait?: number;
    /**
     * useRequest() `manual` parameter
     * @default true
     */
    manual?: boolean;
    targetField?: any;
    /**
     * useRequest() `service` parameter
     */
    service: ResourceActionOptions<P> & {
        defaultParams?: any;
    };
    target: string;
    mapOptions?: (data: any) => SelectProps['fieldNames'];
    dataSource?: string;
    CustomDropdownRender?: (v: any) => any;
    optionFilter?: (option: any) => boolean;
    toOptionsItem?: (data: any) => any;
    onSuccess?: (data: any) => any;
};
export declare const RemoteSelect: React.FunctionComponent<Partial<import("antd").SelectProps<any, any> & {
    objectValue?: boolean;
    onChange?: (v: any) => void;
    multiple: boolean;
    rawOptions: any[];
    fieldNames?: FieldNames;
} & {
    onChange?: (v: any) => void;
    /**
     * useRequest() `debounceWait` parameter
     */
    wait?: number;
    /**
     * useRequest() `manual` parameter
     * @default true
     */
    manual?: boolean;
    targetField?: any;
    /**
     * useRequest() `service` parameter
     */
    service: ResourceActionOptions<any> & {
        defaultParams?: any;
    };
    target: string;
    mapOptions?: (data: any) => SelectProps['fieldNames'];
    dataSource?: string;
    CustomDropdownRender?: (v: any) => any;
    optionFilter?: (option: any) => boolean;
    toOptionsItem?: (data: any) => any;
    onSuccess?: (data: any) => any;
}> & React.RefAttributes<unknown>> & {
    ReadPretty: typeof ReadPretty;
};
export default RemoteSelect;
