/** * 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<<156c6b4bd89b4931acd61ed1d1291a7e>> * * This file was translated from Flow by scripts/js-api/build-types/index.js. * Original file: packages/react-native/Libraries/Animated/AnimatedEvent.js */ import type { NativeSyntheticEvent } from "../Types/CoreEventTypes"; import type { PlatformConfig } from "./AnimatedPlatformConfig"; import AnimatedValue from "./nodes/AnimatedValue"; import AnimatedValueXY from "./nodes/AnimatedValueXY"; export type Mapping = { [key: string]: Mapping; } | AnimatedValue | AnimatedValueXY; export type EventConfig = { listener?: (($$PARAM_0$$: NativeSyntheticEvent) => unknown) | undefined; useNativeDriver: boolean; platformConfig?: PlatformConfig | undefined; }; export declare function attachNativeEventImpl(viewRef: any, eventName: string, argMapping: ReadonlyArray, platformConfig: null | undefined | PlatformConfig): { detach: () => void; }; export declare class AnimatedEvent { constructor(argMapping: ReadonlyArray, config: EventConfig); }