import { KeyboardEvent, MouseEvent } from 'react'; /** * Returns an `onKeyDown` handler for filter components that use `CustomColumnFilterProps`: * - Enter → calls `confirmFn` then closes the dropdown (also prevents default browser behavior) * - Escape → closes the dropdown without confirming * * Attach to the root element of any filter component. */ export declare function useFilterKeyDown(confirmFn: () => void, onCloseDropdown: (e: MouseEvent) => void): (e: KeyboardEvent) => void;