/** * 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<> * * This file was translated from Flow by scripts/js-api/build-types/index.js. * Original file: packages/react-native/Libraries/Types/CodegenTypes.js */ import type { EventSubscription } from "../vendor/emitter/EventEmitter"; import type { NativeSyntheticEvent } from "./CoreEventTypes"; export type BubblingEventHandler = (event: NativeSyntheticEvent) => void | Promise; export type DirectEventHandler = (event: NativeSyntheticEvent) => void | Promise; export type Double = number; export type Float = number; export type Int32 = number; export type UnsafeObject = Object; export type UnsafeMixed = unknown; type DefaultTypes = number | boolean | string | ReadonlyArray; export type WithDefault = null | undefined | Type; export type EventEmitter = (handler: ($$PARAM_0$$: T) => void | Promise) => EventSubscription;