import type { ComponentProps, ComponentRef, ComponentType, ReactNode, Ref } from 'react'; import type { FlatList, FlatListProps } from 'react-native'; import type { AnyRecord } from '../common'; import type { InstanceOrElement } from '../commonTypes'; import type { AnimatedProps } from '../helperTypes'; import type { AnimatedRef } from '../hook'; import type { ExtractElementRef } from '../hook/commonTypes'; import type { Options } from './AnimatedComponent'; import type { InitialComponentProps } from './commonTypes'; type AnimatedComponentRef = Ref> | (TInstance extends InstanceOrElement ? AnimatedRef : never) | AnimatedRef; export type AnimatedComponentType = (props: Omit, 'ref'> & { ref?: AnimatedComponentRef; }) => ReactNode; type AnimatableComponent> = C & { jsProps?: string[]; }; /** * @deprecated Please use `Animated.FlatList` component instead of calling * `Animated.createAnimatedComponent(FlatList)` manually. */ export declare function createAnimatedComponent(Component: typeof FlatList, options?: Options): AnimatedComponentType>, ComponentRef>>; /** * Lets you create an Animated version of any React Native component. * * @param Component - The component you want to make animatable. * @param options - Optional configuration object containing: * * - `setNativeProps`: Function to set native props * - `jsProps`: String array to select which props should be animated on JS * * @returns A component that Reanimated is capable of animating. * @see https://docs.swmansion.com/react-native-reanimated/docs/core/createAnimatedComponent */ export declare function createAnimatedComponent>>(Component: TInstance, options?: Options): AnimatedComponentType>, TInstance>; export {}; //# sourceMappingURL=createAnimatedComponent.d.ts.map