import type { BottomSheetModalProps } from '@gorhom/bottom-sheet'; import type { DefaultNavigatorOptions, Descriptor, NavigationHelpers, NavigationProp, NavigationState, ParamListBase, RouteProp, StackActionHelpers } from '@react-navigation/native'; export type BottomSheetNavigationEventMap = {}; export type BottomSheetNavigationState = Omit, 'routes'> & { type: 'bottom-sheet'; routes: (NavigationState['routes'][number] & { snapToIndex?: number | null; })[]; }; export type BottomSheetActionHelpers = StackActionHelpers & { /** * Snap the drawer to a point. */ snapTo(index?: number): void; }; export type BottomSheetNavigationProp = NavigationProp, BottomSheetNavigationOptions, BottomSheetNavigationEventMap> & BottomSheetActionHelpers; export type BottomSheetScreenProps = { navigation: BottomSheetNavigationProp; route: RouteProp; }; export type BottomSheetNavigationHelpers = NavigationHelpers; export type BottomSheetNavigationConfig = {}; export type BottomSheetNavigationOptions = Omit & { /** * Points for the bottom sheet to snap to. It accepts array of number, string or mix. * String values should be a percentage. * @example * snapPoints={[200, 500]} * snapPoints={[200, '%50']} * snapPoints={['%100']} * @type Array */ snapPoints?: Array; }; export type BottomSheetNavigatorProps = DefaultNavigatorOptions, BottomSheetNavigationOptions, BottomSheetNavigationEventMap> & BottomSheetNavigationConfig; export type BottomSheetDescriptor = Descriptor, RouteProp>; export type BottomSheetDescriptorMap = { [key: string]: BottomSheetDescriptor; }; //# sourceMappingURL=types.d.ts.map