import type { Dispatch, ReactElement, SetStateAction } from 'react'; import React from 'react'; import type { StyleProp, ViewProps, ViewStyle } from 'react-native'; import type { CarouselData } from './types'; interface CarouselProps extends ViewProps { /** * Additional style. */ style?: StyleProp; /** * Testing id of the component. */ testID?: string; /** * onItemIndexChange event handler receiving index of selected Item. */ onItemIndexChange?: Dispatch>; /** * Carousel data. */ items: CarouselData[]; /** * Render action elements function. */ renderActions?: (pageIndex: number) => ReactElement; /** * @deprecated will be removed in 9.0.0 * * Should show paginations */ shouldShowPagination?: (pageIndex: number) => boolean; /** * Current selected item index. */ selectedItemIndex?: number; /** * Position of the page control * * pageControlPosition['bottom'] - @deprecated */ pageControlPosition?: 'top' | 'bottom'; } declare const _default: (({ items, onItemIndexChange, renderActions, selectedItemIndex, style, shouldShowPagination, testID, pageControlPosition, ...nativeProps }: CarouselProps) => React.JSX.Element) & { Card: React.ForwardRefExoticComponent & React.RefAttributes>; }; export default _default;