import { type DefaultRouterOptions, type EventMapBase, type NavigationAction, type NavigationProp, type NavigatorTypeBagBase, type ParamListBase, type RouterFactory, type StaticConfig, type StaticParamList, type StaticScreenFactory, type TypedNavigator } from '@react-navigation/core'; import * as React from 'react'; import type { createStandardNavigator } from 'standard-navigation'; type StandardEventMap = { [EventName in keyof EventMap]: { data: EventMap[EventName] extends { data?: infer Data; } ? Data extends object | undefined ? Data : object | undefined : undefined; canPreventDefault: EventMap[EventName] extends { canPreventDefault: true; } ? true : false; }; }; type ActionHelpersOf = T extends Record unknown> ? T : {}; type StandardNavigationTypeBagFor = TypeBag & { ParamList: ParamList; NavigatorID: NavigatorID; Navigator: React.ComponentType; }; type StandardNavigation = StandardNavigationTypeBagFor['NavigationList'][keyof StandardNavigationTypeBagFor['NavigationList']]; type StandardNavigationPropsMapper = (props: { state: StandardNavigationTypeBagFor['State']; navigation: StandardNavigation; }) => MapperProps; type StandardNavigationDefaultBag = StandardNavigationTypeBagFor; type StandardNavigationFactories = { createNavigator: StandardNavigationCreateNavigator; createScreen: StaticScreenFactory>; }; export type StandardNavigationCreateNavigator = { (): TypedNavigator, undefined>; >>(config: Config & StaticConfig>): TypedNavigator & ParamListBase, string | undefined, NavigatorProps>, Config>; }; export interface StandardNavigationTypeBagBase extends NavigatorTypeBagBase { ActionHelpers: {}; ScreenOptions: {}; EventMap: EventMapBase; RouterOptions: DefaultRouterOptions; NavigationList: { [RouteName in keyof this['ParamList']]: NavigationProp & ActionHelpersOf; }; Navigator: React.ComponentType<{}>; } export declare function createStandardNavigationFactories(navigator: ReturnType, NavigatorProps & MapperProps>>, router: RouterFactory['State'], NavigationAction, TypeBag['RouterOptions']>, mapper?: StandardNavigationPropsMapper): StandardNavigationFactories; export {}; //# sourceMappingURL=createStandardNavigationFactories.d.ts.map