import { StackScreenProps } from '@react-navigation/stack'; import { ParamListBase } from '@react-navigation/native'; type RouteMapOf = Record; export declare function toRouteMap(routeMap: RouteMap): { [K in keyof RouteMap]: K; }; export type ScreenParamTypes, RouteMap = RouteMapOf, ParamList>, ScreenProps = StackScreenProps> = { /** * @description Map of route name placeholders to consuming stack route names */ RouteMap: RouteMap; /** * @description Navigation props and routeMapIn prop for the stack agnostic screen */ ComponentProps: ScreenProps & { /** * @description A map of sub-route name placeholders to the consuming stack's actual route names */ routeMapIn: RouteMap; }; /** * @description Screen Props that can be used with any name stack route */ ScreenProps: ScreenProps; }; export type ScreenProps = ScreenParamTypes['ScreenProps']; export {};