import type { ComponentProps, ReactNode } from 'react'; import React from 'react'; import { Swipeable as RnghSwipeable } from 'react-native-gesture-handler'; type State = 'closed' | 'leftOpen' | 'rightOpen'; type RnghSwipeableProps = ComponentProps; export interface SwipeableProps extends Pick { /** * React node that is swipeable. */ children: ReactNode; /** * State of the component. */ state?: 'closed' | 'leftOpen' | 'rightOpen'; /** * Callback when the state of the component changes. */ onStateChange?: (state: State) => void; /** * Action panel that is going to be revealed from the left side when user swipes right. */ leftActions?: ReactNode; /** * Width of the left action panel. * By default, it will take up the whole width of the device. */ leftActionsWidth?: number; /** * Action panel that is going to be revealed from the right side when user swipes left. */ rightActions?: ReactNode; /** * Width of the right action panel. * By default, it will take up the whole width of the device. */ rightActionsWidth?: number; /** * Testing ID of the component */ testID?: string; /** * Variant of the component. */ variant?: 'card' | 'full-width'; } declare const _default: (({ children, state, onStateChange, leftActions, leftActionsWidth, rightActions, rightActionsWidth, variant, ...swipeableProps }: SwipeableProps) => React.JSX.Element) & { Action: ({ intent, onPress, style, children, testID, }: import("./SwipeableAction").SwipeableActionProps) => React.JSX.Element; Content: React.ForwardRefExoticComponent & React.RefAttributes>>; }; export default _default;