import type { Options, Service } from 'ahooks/lib/useRequest/src/types';
import type { CnSelectOptionProps } from '../../cn-select';
import type { ICnAsyncSelectRequestMethod } from './i-cn-asyncSelect-request-method';
import type { ISelectRequestServiceQuery } from './i-select-request-service-query';
import type { TsearchFormat } from './t-search-format';
export type ICnAsyncSelectRequestConfig = Options<CnSelectOptionProps[], ISelectRequestServiceQuery> & {
    /**
     * 自定义请求地址
     */
    url?: string;
    /**
     * 自定义请求函数
     */
    service?: Service<any, any>;
    /**
     * 远程搜索参数名
     */
    searchKey?: string;
    /**
     * 远程搜索时，用于格式化搜索参数
     */
    searchFormat?: TsearchFormat;
    /**
     * 用于格式化结果
     */
    formatResult?: (res: unknown) => CnSelectOptionProps[];
    /**
     * 请求格方法
     */
    method?: ICnAsyncSelectRequestMethod;
};
