import { KeyboardEvent } from 'react'; export declare type GetKeyHandlerMap = () => { test?: (e: KeyboardEvent) => any; [key: string]: ((e: KeyboardEvent) => any) | undefined; }; /** * Generate a key handling function based on map of key names (or a function that returns * a map of key names) * * @param {Function.>} getMap * @param [after] a function to invoke after the event has been dispatched (only fires if there was something to dispatch) * @returns {function(Event)} */ export default function keyHandler(getMap: GetKeyHandlerMap, after?: Function): (this: any, e: any) => any;