import { AdvanceFilterProps } from './components/Container';
import { FieldProps } from './components/Field';
import { ChipItem } from './types';

export interface UseAdvanceFilterConfig {
    withSearchParam?: boolean;
    title?: string;
    fields?: AdvanceFilterProps["fields"];
}
export declare const useAdvanceFilter: (config?: UseAdvanceFilterConfig) => {
    value: {
        [name: string]: any;
    } | undefined;
    open: () => void;
    close: () => void;
    toggle: () => void;
    reset: () => void;
    chips: {
        name: string | undefined;
        label: string | undefined;
        value: any;
        valueText: string;
        children: FieldProps[];
    }[];
    toggleConfig: {
        active: boolean;
        onClick: () => void;
    };
    chipsConfig: {
        items: {
            name: string | undefined;
            label: string | undefined;
            value: any;
            valueText: string;
            children: FieldProps[];
        }[];
        onClose: (f: ChipItem) => void;
    };
    config: {
        show: boolean;
        onHide: () => void;
        resetting: boolean;
        onReset: (val: boolean) => void;
        withSearchParam?: boolean;
        title?: string;
        fields?: AdvanceFilterProps["fields"];
    };
};
