import * as React from 'react'; import { View } from 'react-native'; import type { ZestUIComponentProps } from '../../types'; import { type DrawerSwipeDirection } from '../root/DrawerRootContext'; /** * An invisible area, usually pinned to a screen edge, that opens the drawer when * swiped. Renders a `` wrapped in a `GestureDetector`. * * Its swipe direction defaults to the opposite of `Drawer.Root`'s * `swipeDirection`: a drawer dismissed by swiping `down` is opened by swiping * `up`. Place it where the drawer enters from (a bottom drawer's swipe area sits * at the bottom of the screen) and give it a size — it has none of its own. * * Requires `react-native-gesture-handler`, and the app to be wrapped in * ``. */ export declare function DrawerSwipeArea(componentProps: DrawerSwipeArea.Props): React.JSX.Element; export interface DrawerSwipeAreaState { /** * Whether the drawer is currently open. */ open: boolean; /** * Whether a swipe is currently in progress. */ swiping: boolean; /** * The swipe direction that opens the drawer. */ swipeDirection: DrawerSwipeDirection; /** * Whether the swipe area is disabled. */ disabled: boolean; } export interface DrawerSwipeAreaProps extends ZestUIComponentProps { /** * Whether the swipe area is disabled. * @default false */ disabled?: boolean | undefined; /** * The swipe direction that opens the drawer. Defaults to the opposite of * `Drawer.Root`'s `swipeDirection`. */ swipeDirection?: DrawerSwipeDirection | undefined; /** * How far a swipe must travel, in pixels, before it opens the drawer. * @default 40 */ swipeThreshold?: number | undefined; } export declare namespace DrawerSwipeArea { type State = DrawerSwipeAreaState; type Props = DrawerSwipeAreaProps; } //# sourceMappingURL=DrawerSwipeArea.d.ts.map