declare type KeyUpDownType = { pressedKey: string; action: number; keyCode: number; enterPressed: boolean; }; declare type MultipleKeyType = { pressedKey: string; action: number; keyCode: number; characters?: number; repeatcount?: number; }; declare class KeyEventAndroidClass { onKeyDownListener(callback: (ev: KeyUpDownType) => void): () => void; onKeyUpListener(callback: (ev: KeyUpDownType) => void): () => void; onKeyMultipleListener(callback: (ev: MultipleKeyType) => void): () => void; onDispatchKeyListener(callback: (ev: KeyUpDownType) => void): () => void; onDispatchBarcodeReadListener(callback: (barcode: string) => void): () => void; } declare const KeyEventAndroid: KeyEventAndroidClass; export default KeyEventAndroid;