/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @generated SignedSource<<0806d7b2ac135d0304ea48a8b0bbd871>> * * This file was translated from Flow by scripts/js-api/build-types/index.js. * Original file: packages/react-native/Libraries/Components/TV/TVEventHandler.js */ import { type EventSubscription } from "../../vendor/emitter/EventEmitter"; type TVRemoteEventBody = { state: string; x: number; y: number; velocityX: number; velocityY: number; }; type TVRemoteEvent = { eventType: string; eventKeyAction: number | undefined; tag: number | undefined; body: TVRemoteEventBody | undefined; }; type TVEventHandlerCallback = (event: TVRemoteEvent) => void; type TVEventHandlerType = { addListener: (callback: TVEventHandlerCallback) => EventSubscription; }; declare const TVEventHandler: TVEventHandlerType; declare const $$TVEventHandler: typeof TVEventHandler; declare type $$TVEventHandler = typeof $$TVEventHandler; export default $$TVEventHandler;