import type { UrlStateOptions } from "../../../_util/hooks/useUrlState"; import type { AnyObject } from '../../../_util/type'; import type { FilterKey, FilterValue, GetPopupContainer, InternalColumnsType, InternalColumnType, Key, TableLocale } from '../../interface'; export interface FilterState { column: InternalColumnType; key: Key; filteredKeys?: FilterKey; forceFiltered?: boolean; } export interface FilterConfig { prefixCls: string; dropdownPrefixCls: string; columns?: InternalColumnsType; locale: TableLocale; onFilterChange: (filters: Record, filterStates: FilterState[]) => void; getPopupContainer?: GetPopupContainer; syncToUrl?: UrlStateOptions; } export declare const getFlattenColumns: (columns: InternalColumnsType) => InternalColumnsType; declare const useFilter: (props: FilterConfig) => [(columns: InternalColumnsType) => InternalColumnsType, FilterState[], Record]; export default useFilter;