import { ReactElement, ReactNode } from 'react'; import { FlatList, FlatListProps } from 'react-native'; import { SwipeableProps } from 'react-native-gesture-handler'; import { SwipeableRowHandle } from './swipeableRowsController'; export type SwipeableActionRenderer = (item: T) => ReactNode; export type SwipeableActionsRenderer = (...args: unknown[]) => ReactNode; export type SwipeableFlatListSwipeableProps = Omit & { renderLeftActions?: SwipeableActionsRenderer; renderRightActions?: SwipeableActionsRenderer; } & Record; export interface SwipeableFlatListProps extends FlatListProps { renderLeftActions?: SwipeableActionRenderer; renderRightActions?: SwipeableActionRenderer; swipeableProps?: SwipeableFlatListSwipeableProps; enableOpenMultipleRows?: boolean; } export interface SwipeableFlatListRef extends FlatList { closeAnyOpenRows: () => void; } export interface SwipeableRowAdapterProps { children: ReactNode; item: T; onRowClose: () => void; onRowOpen: (row: SwipeableRowHandle) => void; registerRow: (row: SwipeableRowHandle | null) => void; renderLeftActions?: SwipeableActionRenderer; renderRightActions?: SwipeableActionRenderer; swipeableProps?: SwipeableFlatListSwipeableProps; } export type SwipeableRowAdapterComponent = (props: SwipeableRowAdapterProps) => ReactElement | null; //# sourceMappingURL=types.d.ts.map