Files
Fluxup_PAP/node_modules/expo-router/build/ui/common.d.ts
2026-03-10 16:18:05 +00:00

40 lines
1.5 KiB
TypeScript

import { LinkingOptions, ParamListBase, PartialRoute, Route } from '@react-navigation/native';
import type { ExpoTabActionType } from './TabRouter';
import { UrlObject } from '../LocationProvider';
import { RouteNode } from '../Route';
import { Href } from '../types';
import { Slot } from './Slot';
export declare const ViewSlot: Slot<import("react-native").ViewProps, import("react").Component<import("react-native").ViewProps, {}, any>>;
export type ScreenTrigger = {
type: 'internal';
href: Href;
name: string;
} | {
type: 'external';
name: string;
href: string;
};
type JumpToNavigationAction = Extract<ExpoTabActionType, {
type: 'JUMP_TO';
}>;
type TriggerConfig = {
type: 'internal';
name: string;
href: string;
routeNode: RouteNode;
action: JumpToNavigationAction;
} | {
type: 'external';
name: string;
href: string;
};
export type TriggerMap = Record<string, TriggerConfig & {
index: number;
}>;
export declare function triggersToScreens(triggers: ScreenTrigger[], layoutRouteNode: RouteNode, linking: LinkingOptions<ParamListBase>, initialRouteName: undefined | string, parentTriggerMap: TriggerMap, routeInfo: UrlObject, contextKey: string): {
children: import("react").JSX.Element[];
triggerMap: TriggerMap;
};
export declare function stateToAction(state: PartialRoute<Route<string, object | undefined>> | undefined, startAtRoute?: string): JumpToNavigationAction;
export {};
//# sourceMappingURL=common.d.ts.map