import React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; export interface CardSwiperRef { swipeLeft: () => void; swipeRight: () => void; swipeTop: () => void; swipeBottom: () => void; resetSwiper: () => void; } declare const CardSwiper: React.ForwardRefExoticComponent>; export default CardSwiper; export declare type OffsetDirection = 'Left' | 'Right' | 'Top' | 'Bottom'; interface CardSwiperProps extends CommonProps { infinite?: boolean; startIndex?: number; onSwipedAll?: () => void; onSwipedLeft?: (index: number) => void; onSwipedRight?: (index: number) => void; onSwipedTop?: (index: number) => void; onSwipedBottom?: (index: number) => void; onSwiped?: (index: number) => void; containerStyle?: StyleProp; renderEmptyView?: () => React.ReactElement; } export interface CommonProps { cardsData: Array; stackSize: number; offsetDirection?: OffsetDirection; offsetSpace?: number; scaleRatio?: number; cardStyle?: StyleProp; renderCard: (item: any) => React.ReactElement; onReset?: (index: number) => void; onTap?: (index: number) => void; disableLeftSwipe?: boolean; disableRightSwipe?: boolean; disableTopSwipe?: boolean; disableBottomSwipe?: boolean; disableSwipe?: boolean; horizontalSwipe?: boolean; verticalSwipe?: boolean; onlyTopSwipeable?: boolean; touchInset?: number; cardElevated?: boolean; }