import { Ref, ShallowRef } from 'vue';
import { BaseCascaderProps, ShowSearchType } from '../Cascader';
import { DefaultOptionType, FieldNames } from '..';
export default function useSearchConfig(showSearch?: Ref<BaseCascaderProps['showSearch']>): {
    showSearch: ShallowRef<boolean, boolean>;
    searchConfig: Ref<{
        filter?: ((inputValue: string, options: DefaultOptionType[], fieldNames: FieldNames) => boolean) | undefined;
        render?: ((arg?: {
            inputValue: string;
            path: DefaultOptionType[];
            prefixCls: string;
            fieldNames: FieldNames;
        } | undefined) => any) | undefined;
        sort?: ((a: DefaultOptionType[], b: DefaultOptionType[], inputValue: string, fieldNames: FieldNames) => number) | undefined;
        matchInputWidth?: boolean | undefined;
        limit?: number | false | undefined;
    }, ShowSearchType< DefaultOptionType> | {
        filter?: ((inputValue: string, options: DefaultOptionType[], fieldNames: FieldNames) => boolean) | undefined;
        render?: ((arg?: {
            inputValue: string;
            path: DefaultOptionType[];
            prefixCls: string;
            fieldNames: FieldNames;
        } | undefined) => any) | undefined;
        sort?: ((a: DefaultOptionType[], b: DefaultOptionType[], inputValue: string, fieldNames: FieldNames) => number) | undefined;
        matchInputWidth?: boolean | undefined;
        limit?: number | false | undefined;
    }>;
};
