///
import type { Descriptor, NavigationHelpers, NavigationProp, ParamListBase, RouteProp, TabActionHelpers, TabNavigationState } from '@react-navigation/native';
import type BottomNavigation from '../components/BottomNavigation/BottomNavigation';
export type MaterialBottomTabNavigationEventMap = {
/**
* Event which fires on tapping on the tab in the tab bar.
*/
tabPress: {
data: undefined;
canPreventDefault: true;
};
/**
* Event which fires on long pressing on the tab in the tab bar.
*/
tabLongPress: {};
};
export type MaterialBottomTabNavigationHelpers = NavigationHelpers & TabActionHelpers;
export type MaterialBottomTabNavigationProp = NavigationProp, MaterialBottomTabNavigationOptions, MaterialBottomTabNavigationEventMap> & TabActionHelpers;
export type MaterialBottomTabScreenProps = {
navigation: MaterialBottomTabNavigationProp;
route: RouteProp;
};
export type MaterialBottomTabNavigationOptions = {
/**
* Title text for the screen.
*/
title?: string;
/**
* @deprecated In v5.x works only with theme version 2.
* Color of the tab bar when this tab is active. Only used when `shifting` is `true`.
*/
tabBarColor?: string;
/**
* Label text of the tab displayed in the navigation bar. When undefined, scene title is used.
*/
tabBarLabel?: string;
/**
* String referring to an icon in the `MaterialCommunityIcons` set, or a
* function that given { focused: boolean, color: string } returns a React.Node to display in the navigation bar.
*/
tabBarIcon?: string | ((props: {
focused: boolean;
color: string;
}) => React.ReactNode);
/**
* Badge to show on the tab icon, can be `true` to show a dot, `string` or `number` to show text.
*/
tabBarBadge?: boolean | number | string;
/**
* Accessibility label for the tab button. This is read by the screen reader when the user taps the tab.
*/
tabBarAccessibilityLabel?: string;
/**
* ID to locate this tab button in tests.
*/
tabBarButtonTestID?: string;
};
export type MaterialBottomTabDescriptor = Descriptor, RouteProp>;
export type MaterialBottomTabDescriptorMap = Record;
export type MaterialBottomTabNavigationConfig = Partial, 'navigationState' | 'onIndexChange' | 'onTabPress' | 'onTabLongPress' | 'renderScene' | 'renderLabel' | 'renderIcon' | 'getAccessibilityLabel' | 'getBadge' | 'getColor' | 'getLabelText' | 'getTestID' | 'getLazy'>>;
//# sourceMappingURL=types.d.ts.map