///
import { ComponentClass, KeyboardEvent, SFC } from 'react';
export interface WithKeysProps {
handlers: IHandlers;
matchers?: IMatchers;
useKeys?: boolean;
}
export declare type WithKeysHOC = (decorated: ComponentClass | SFC) => ComponentClass>;
export interface IHandlers {
[key: string]: (event: KeyboardEvent, props: T) => void | string;
}
export interface IMatchers {
[key: string]: (event: KeyboardEvent) => boolean;
}
export default function withKeys(): WithKeysHOC;