import React, { ReactNode } from "react"; import { View, ViewProps } from "react-native"; import { CellSwipeItemProps } from "./types"; export type AdditionalSurfaceProps = { /** * The content of the additional surface. */ component: ReactNode; /** * Callback method invoked when a user presses the additional surface. * Leaving this `undefined` causes the additional surface to not respond to touch or hover events. */ onPress?: () => void; }; type SwipeGroup = CellSwipeItemProps[]; export type CellProps = { /** * A component that uses the left-remaining space after the child content of the cell has been adjusted for. */ leftAdornment?: ReactNode; /** * A component that uses the right-remaining space after the child content of the cell has been adjusted for. */ rightAdornment?: ReactNode; /** * A list of items configuring the components that appear on the right side when a user swipes the cell. * Setting this prop makes the cell swipable to the left. */ rightSwipeGroup?: SwipeGroup; /** * A list of items configuring the components that appear on the left side when a user swipes the cell. * Setting this prop makes the cell swipable to the right. */ leftSwipeGroup?: SwipeGroup; /** * Callback method invoked when a user presses the cell. * Leaving this `undefined` causes the cell to not respond to touch or hover events. */ onPress?: () => void; /** * Additional touchable surface to be rendered to the left of the cell */ additionalSurface?: AdditionalSurfaceProps; } & ViewProps; export declare const Cell: React.ForwardRefExoticComponent<{ /** * A component that uses the left-remaining space after the child content of the cell has been adjusted for. */ leftAdornment?: ReactNode; /** * A component that uses the right-remaining space after the child content of the cell has been adjusted for. */ rightAdornment?: ReactNode; /** * A list of items configuring the components that appear on the right side when a user swipes the cell. * Setting this prop makes the cell swipable to the left. */ rightSwipeGroup?: SwipeGroup; /** * A list of items configuring the components that appear on the left side when a user swipes the cell. * Setting this prop makes the cell swipable to the right. */ leftSwipeGroup?: SwipeGroup; /** * Callback method invoked when a user presses the cell. * Leaving this `undefined` causes the cell to not respond to touch or hover events. */ onPress?: () => void; /** * Additional touchable surface to be rendered to the left of the cell */ additionalSurface?: AdditionalSurfaceProps; } & ViewProps & { children?: ReactNode | undefined; } & React.RefAttributes>; export {};