/** * 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/Animated/nodes/AnimatedInterpolation.js */ import type { NativeColorValue } from "../../StyleSheet/StyleSheetTypes"; import type AnimatedNode from "./AnimatedNode"; import type { AnimatedNodeConfig } from "./AnimatedNode"; import AnimatedWithChildren from "./AnimatedWithChildren"; type ExtrapolateType = "extend" | "identity" | "clamp"; export type InterpolationConfigSupportedOutputType = number | string | NativeColorValue; export type InterpolationConfigType = Readonly; outputRange: ReadonlyArray; easing?: (input: number) => number; extrapolate?: ExtrapolateType; extrapolateLeft?: ExtrapolateType; extrapolateRight?: ExtrapolateType; }> & { inputRange: ReadonlyArray; outputRange: ReadonlyArray; easing?: (input: number) => number; extrapolate?: ExtrapolateType; extrapolateLeft?: ExtrapolateType; extrapolateRight?: ExtrapolateType; }>; declare class AnimatedInterpolation extends AnimatedWithChildren { constructor(parent: AnimatedNode, config: InterpolationConfigType); interpolate(config: InterpolationConfigType): AnimatedInterpolation; } export default AnimatedInterpolation;