@equinor/mad-core 0.18.1 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/{chunk-T4TC3AQN.js → chunk-3QGEQ4LV.js} +1 -1
  3. package/dist/{chunk-NYC63GQG.js → chunk-BFOEM4OQ.js} +6 -6
  4. package/dist/{chunk-V6VOTEDJ.js → chunk-BVS4TEYU.js} +1 -1
  5. package/dist/{chunk-GQ2R7AYC.js → chunk-CCWBP32I.js} +1 -1
  6. package/dist/{chunk-AXY3DL65.js → chunk-GBEOV7WV.js} +5 -5
  7. package/dist/{chunk-KEFHOMOW.js → chunk-HYW645OK.js} +2 -2
  8. package/dist/{chunk-DGIAXVWS.js → chunk-MTJ75ZLM.js} +2 -2
  9. package/dist/{chunk-WEJ4LF6M.js → chunk-RSHKFTQY.js} +2 -2
  10. package/dist/{chunk-PQODWSOK.js → chunk-VKFXR4QU.js} +1 -1
  11. package/dist/components/OfflineBanner.js +1 -1
  12. package/dist/components/createCoreStackNavigator.d.ts +1631 -4
  13. package/dist/components/createCoreStackNavigator.js +26 -26
  14. package/dist/components/index.js +28 -28
  15. package/dist/components/navigation/MadCoreSubHeader.js +3 -3
  16. package/dist/components/navigation/index.js +4 -4
  17. package/dist/components/navigation/navigation-creators.d.ts +3 -3
  18. package/dist/components/navigation/navigation-creators.js +4 -4
  19. package/dist/components/screens/AboutScreen.js +2 -2
  20. package/dist/components/screens/LoginScreen.js +3 -3
  21. package/dist/components/screens/create-incident/CreateIncidentScreen.js +26 -26
  22. package/dist/components/screens/create-incident/createIncident.js +26 -26
  23. package/dist/components/screens/language/SelectLanguageScreen.js +4 -4
  24. package/dist/components/screens/release-notes/ReleaseNotesScreen.js +3 -3
  25. package/dist/components/screens/release-notes/WhatsNewScreen.js +7 -7
  26. package/dist/components/screens/settings/Section.js +1 -1
  27. package/dist/components/screens/settings/SettingsScreen.js +4 -4
  28. package/dist/components/screens/settings/index.js +4 -4
  29. package/dist/components/screens/settings/useSignOut.js +2 -2
  30. package/dist/hooks/index.js +2 -2
  31. package/dist/hooks/useNavigateFromLanguageSelectScreen.js +2 -2
  32. package/dist/hooks/useNavigateFromLoginScreen.js +2 -2
  33. package/dist/hooks/useNavigateFromWhatsNewScreen.js +2 -2
  34. package/dist/hooks/useScreenTitleFromDictionary.js +2 -2
  35. package/dist/index.js +33 -33
  36. package/dist/utils/MadCoreProviders.js +1 -1
  37. package/dist/utils/createMadCoreNavigator.d.ts +1062 -2
  38. package/dist/utils/createMadCoreNavigator.js +26 -26
  39. package/package.json +2 -2
  40. package/dist/{chunk-INA5ANZO.js → chunk-75UZ4BR5.js} +4 -4
  41. package/dist/{chunk-X33ICKCC.js → chunk-C7NJODNT.js} +3 -3
  42. package/dist/{chunk-4KSJR7E5.js → chunk-HPDK6AZ3.js} +3 -3
  43. package/dist/{chunk-HADLUP7M.js → chunk-JADYNBGN.js} +3 -3
  44. package/dist/{chunk-27KFGUGY.js → chunk-KB3M7X3Q.js} +3 -3
  45. package/dist/{chunk-4TVVFWGM.js → chunk-PMQPVI37.js} +3 -3
@@ -1,9 +1,1636 @@
1
1
  import { ParamListBase } from "@react-navigation/native";
2
- import { MadConfig } from "../types";
3
- export declare const createStackCoreNavigator: <T extends ParamListBase>(config: MadConfig<T>) => any;
4
- export declare const createNativeStackCoreNavigator: <T extends ParamListBase>(config: MadConfig<T>) => any;
2
+ import { CoreStackParamListBase, MadConfig } from "../types";
3
+ export declare const createStackCoreNavigator: <T extends ParamListBase>(config: MadConfig<T>) => {
4
+ Navigator: (props: Omit<Omit<any, "children" | "id" | "initialRouteName" | "layout" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router" | "UNSTABLE_routeNamesChangeBehavior"> & (import("@react-navigation/native").DefaultRouterOptions<keyof CoreStackParamListBase | Extract<keyof T, string>> & ({
5
+ children: React.ReactNode;
6
+ layout?: ((props: {
7
+ state: Readonly<{
8
+ key: string;
9
+ index: number;
10
+ routeNames: string[];
11
+ history?: unknown[];
12
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
13
+ type: string;
14
+ stale: false;
15
+ }> & Readonly<{
16
+ key: string;
17
+ index: number;
18
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
19
+ history?: unknown[];
20
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
21
+ type: string;
22
+ stale: false;
23
+ }> & {
24
+ type: "stack";
25
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
26
+ };
27
+ navigation: import("@react-navigation/native").NavigationHelpers<CoreStackParamListBase & T, {}>;
28
+ descriptors: Record<string, import("@react-navigation/native").Descriptor<Omit<import("@react-navigation/elements").HeaderOptions, "headerLeft" | "headerTitle" | "headerRight"> & {
29
+ headerTitle?: string | ((props: import("@react-navigation/elements").HeaderTitleProps) => React.ReactNode);
30
+ headerLeft?: (props: import("@react-navigation/stack").StackHeaderLeftProps) => React.ReactNode;
31
+ headerRight?: (props: import("@react-navigation/stack").StackHeaderRightProps) => React.ReactNode;
32
+ headerBackAllowFontScaling?: boolean;
33
+ headerBackAccessibilityLabel?: string;
34
+ headerBackTestID?: string;
35
+ headerBackTitle?: string;
36
+ headerBackTruncatedTitle?: string;
37
+ headerBackButtonDisplayMode?: import("@react-navigation/elements").HeaderBackButtonDisplayMode;
38
+ headerBackTitleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
39
+ headerBackImage?: React.ComponentProps<typeof import("@react-navigation/elements").HeaderBackButton>["backImage"];
40
+ } & Partial<import("@react-navigation/stack").TransitionPreset> & {
41
+ title?: string;
42
+ header?: (props: import("@react-navigation/stack").StackHeaderProps) => React.ReactNode;
43
+ headerMode?: import("@react-navigation/stack/lib/typescript/src/types").StackHeaderMode;
44
+ headerShown?: boolean;
45
+ cardShadowEnabled?: boolean;
46
+ cardOverlayEnabled?: boolean;
47
+ cardOverlay?: (props: {
48
+ style: import("react-native").Animated.WithAnimatedValue<import("react-native").StyleProp<import("react-native").ViewStyle>>;
49
+ }) => React.ReactNode;
50
+ cardStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
51
+ presentation?: "card" | "modal" | "transparentModal";
52
+ animation?: import("@react-navigation/stack").StackAnimationName;
53
+ animationTypeForReplace?: "push" | "pop";
54
+ gestureEnabled?: boolean;
55
+ gestureResponseDistance?: number;
56
+ gestureVelocityImpact?: number;
57
+ detachPreviousScreen?: boolean;
58
+ keyboardHandlingEnabled?: boolean;
59
+ freezeOnBlur?: boolean;
60
+ autoHideHomeIndicator?: boolean;
61
+ } & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/native").NavigationProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T, string | undefined, Readonly<{
62
+ key: string;
63
+ index: number;
64
+ routeNames: string[];
65
+ history?: unknown[];
66
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
67
+ type: string;
68
+ stale: false;
69
+ }> & Readonly<{
70
+ key: string;
71
+ index: number;
72
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
73
+ history?: unknown[];
74
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
75
+ type: string;
76
+ stale: false;
77
+ }> & {
78
+ type: "stack";
79
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
80
+ }, Omit<import("@react-navigation/elements").HeaderOptions, "headerLeft" | "headerTitle" | "headerRight"> & {
81
+ headerTitle?: string | ((props: import("@react-navigation/elements").HeaderTitleProps) => React.ReactNode);
82
+ headerLeft?: (props: import("@react-navigation/stack").StackHeaderLeftProps) => React.ReactNode;
83
+ headerRight?: (props: import("@react-navigation/stack").StackHeaderRightProps) => React.ReactNode;
84
+ headerBackAllowFontScaling?: boolean;
85
+ headerBackAccessibilityLabel?: string;
86
+ headerBackTestID?: string;
87
+ headerBackTitle?: string;
88
+ headerBackTruncatedTitle?: string;
89
+ headerBackButtonDisplayMode?: import("@react-navigation/elements").HeaderBackButtonDisplayMode;
90
+ headerBackTitleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
91
+ headerBackImage?: React.ComponentProps<typeof import("@react-navigation/elements").HeaderBackButton>["backImage"];
92
+ } & Partial<import("@react-navigation/stack").TransitionPreset> & {
93
+ title?: string;
94
+ header?: (props: import("@react-navigation/stack").StackHeaderProps) => React.ReactNode;
95
+ headerMode?: import("@react-navigation/stack/lib/typescript/src/types").StackHeaderMode;
96
+ headerShown?: boolean;
97
+ cardShadowEnabled?: boolean;
98
+ cardOverlayEnabled?: boolean;
99
+ cardOverlay?: (props: {
100
+ style: import("react-native").Animated.WithAnimatedValue<import("react-native").StyleProp<import("react-native").ViewStyle>>;
101
+ }) => React.ReactNode;
102
+ cardStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
103
+ presentation?: "card" | "modal" | "transparentModal";
104
+ animation?: import("@react-navigation/stack").StackAnimationName;
105
+ animationTypeForReplace?: "push" | "pop";
106
+ gestureEnabled?: boolean;
107
+ gestureResponseDistance?: number;
108
+ gestureVelocityImpact?: number;
109
+ detachPreviousScreen?: boolean;
110
+ keyboardHandlingEnabled?: boolean;
111
+ freezeOnBlur?: boolean;
112
+ autoHideHomeIndicator?: boolean;
113
+ } & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/stack").StackNavigationEventMap>, import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>>>;
114
+ children: React.ReactNode;
115
+ }) => React.ReactElement) | undefined;
116
+ screenListeners?: Partial<{
117
+ transitionStart: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
118
+ key: string;
119
+ index: number;
120
+ routeNames: string[];
121
+ history?: unknown[];
122
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
123
+ type: string;
124
+ stale: false;
125
+ }> & Readonly<{
126
+ key: string;
127
+ index: number;
128
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
129
+ history?: unknown[];
130
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
131
+ type: string;
132
+ stale: false;
133
+ }> & {
134
+ type: "stack";
135
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
136
+ }>, "transitionStart", unknown>;
137
+ transitionEnd: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
138
+ key: string;
139
+ index: number;
140
+ routeNames: string[];
141
+ history?: unknown[];
142
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
143
+ type: string;
144
+ stale: false;
145
+ }> & Readonly<{
146
+ key: string;
147
+ index: number;
148
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
149
+ history?: unknown[];
150
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
151
+ type: string;
152
+ stale: false;
153
+ }> & {
154
+ type: "stack";
155
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
156
+ }>, "transitionEnd", unknown>;
157
+ gestureStart: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
158
+ key: string;
159
+ index: number;
160
+ routeNames: string[];
161
+ history?: unknown[];
162
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
163
+ type: string;
164
+ stale: false;
165
+ }> & Readonly<{
166
+ key: string;
167
+ index: number;
168
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
169
+ history?: unknown[];
170
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
171
+ type: string;
172
+ stale: false;
173
+ }> & {
174
+ type: "stack";
175
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
176
+ }>, "gestureStart", unknown>;
177
+ gestureEnd: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
178
+ key: string;
179
+ index: number;
180
+ routeNames: string[];
181
+ history?: unknown[];
182
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
183
+ type: string;
184
+ stale: false;
185
+ }> & Readonly<{
186
+ key: string;
187
+ index: number;
188
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
189
+ history?: unknown[];
190
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
191
+ type: string;
192
+ stale: false;
193
+ }> & {
194
+ type: "stack";
195
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
196
+ }>, "gestureEnd", unknown>;
197
+ gestureCancel: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
198
+ key: string;
199
+ index: number;
200
+ routeNames: string[];
201
+ history?: unknown[];
202
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
203
+ type: string;
204
+ stale: false;
205
+ }> & Readonly<{
206
+ key: string;
207
+ index: number;
208
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
209
+ history?: unknown[];
210
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
211
+ type: string;
212
+ stale: false;
213
+ }> & {
214
+ type: "stack";
215
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
216
+ }>, "gestureCancel", unknown>;
217
+ focus: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
218
+ key: string;
219
+ index: number;
220
+ routeNames: string[];
221
+ history?: unknown[];
222
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
223
+ type: string;
224
+ stale: false;
225
+ }> & Readonly<{
226
+ key: string;
227
+ index: number;
228
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
229
+ history?: unknown[];
230
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
231
+ type: string;
232
+ stale: false;
233
+ }> & {
234
+ type: "stack";
235
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
236
+ }>, "focus", unknown>;
237
+ blur: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
238
+ key: string;
239
+ index: number;
240
+ routeNames: string[];
241
+ history?: unknown[];
242
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
243
+ type: string;
244
+ stale: false;
245
+ }> & Readonly<{
246
+ key: string;
247
+ index: number;
248
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
249
+ history?: unknown[];
250
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
251
+ type: string;
252
+ stale: false;
253
+ }> & {
254
+ type: "stack";
255
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
256
+ }>, "blur", unknown>;
257
+ state: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
258
+ key: string;
259
+ index: number;
260
+ routeNames: string[];
261
+ history?: unknown[];
262
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
263
+ type: string;
264
+ stale: false;
265
+ }> & Readonly<{
266
+ key: string;
267
+ index: number;
268
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
269
+ history?: unknown[];
270
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
271
+ type: string;
272
+ stale: false;
273
+ }> & {
274
+ type: "stack";
275
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
276
+ }>, "state", unknown>;
277
+ beforeRemove: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
278
+ key: string;
279
+ index: number;
280
+ routeNames: string[];
281
+ history?: unknown[];
282
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
283
+ type: string;
284
+ stale: false;
285
+ }> & Readonly<{
286
+ key: string;
287
+ index: number;
288
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
289
+ history?: unknown[];
290
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
291
+ type: string;
292
+ stale: false;
293
+ }> & {
294
+ type: "stack";
295
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
296
+ }>, "beforeRemove", true>;
297
+ }> | ((props: {
298
+ route: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>;
299
+ navigation: (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T];
300
+ }) => Partial<{
301
+ transitionStart: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
302
+ key: string;
303
+ index: number;
304
+ routeNames: string[];
305
+ history?: unknown[];
306
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
307
+ type: string;
308
+ stale: false;
309
+ }> & Readonly<{
310
+ key: string;
311
+ index: number;
312
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
313
+ history?: unknown[];
314
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
315
+ type: string;
316
+ stale: false;
317
+ }> & {
318
+ type: "stack";
319
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
320
+ }>, "transitionStart", unknown>;
321
+ transitionEnd: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
322
+ key: string;
323
+ index: number;
324
+ routeNames: string[];
325
+ history?: unknown[];
326
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
327
+ type: string;
328
+ stale: false;
329
+ }> & Readonly<{
330
+ key: string;
331
+ index: number;
332
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
333
+ history?: unknown[];
334
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
335
+ type: string;
336
+ stale: false;
337
+ }> & {
338
+ type: "stack";
339
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
340
+ }>, "transitionEnd", unknown>;
341
+ gestureStart: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
342
+ key: string;
343
+ index: number;
344
+ routeNames: string[];
345
+ history?: unknown[];
346
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
347
+ type: string;
348
+ stale: false;
349
+ }> & Readonly<{
350
+ key: string;
351
+ index: number;
352
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
353
+ history?: unknown[];
354
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
355
+ type: string;
356
+ stale: false;
357
+ }> & {
358
+ type: "stack";
359
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
360
+ }>, "gestureStart", unknown>;
361
+ gestureEnd: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
362
+ key: string;
363
+ index: number;
364
+ routeNames: string[];
365
+ history?: unknown[];
366
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
367
+ type: string;
368
+ stale: false;
369
+ }> & Readonly<{
370
+ key: string;
371
+ index: number;
372
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
373
+ history?: unknown[];
374
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
375
+ type: string;
376
+ stale: false;
377
+ }> & {
378
+ type: "stack";
379
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
380
+ }>, "gestureEnd", unknown>;
381
+ gestureCancel: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
382
+ key: string;
383
+ index: number;
384
+ routeNames: string[];
385
+ history?: unknown[];
386
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
387
+ type: string;
388
+ stale: false;
389
+ }> & Readonly<{
390
+ key: string;
391
+ index: number;
392
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
393
+ history?: unknown[];
394
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
395
+ type: string;
396
+ stale: false;
397
+ }> & {
398
+ type: "stack";
399
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
400
+ }>, "gestureCancel", unknown>;
401
+ focus: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
402
+ key: string;
403
+ index: number;
404
+ routeNames: string[];
405
+ history?: unknown[];
406
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
407
+ type: string;
408
+ stale: false;
409
+ }> & Readonly<{
410
+ key: string;
411
+ index: number;
412
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
413
+ history?: unknown[];
414
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
415
+ type: string;
416
+ stale: false;
417
+ }> & {
418
+ type: "stack";
419
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
420
+ }>, "focus", unknown>;
421
+ blur: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
422
+ key: string;
423
+ index: number;
424
+ routeNames: string[];
425
+ history?: unknown[];
426
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
427
+ type: string;
428
+ stale: false;
429
+ }> & Readonly<{
430
+ key: string;
431
+ index: number;
432
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
433
+ history?: unknown[];
434
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
435
+ type: string;
436
+ stale: false;
437
+ }> & {
438
+ type: "stack";
439
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
440
+ }>, "blur", unknown>;
441
+ state: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
442
+ key: string;
443
+ index: number;
444
+ routeNames: string[];
445
+ history?: unknown[];
446
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
447
+ type: string;
448
+ stale: false;
449
+ }> & Readonly<{
450
+ key: string;
451
+ index: number;
452
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
453
+ history?: unknown[];
454
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
455
+ type: string;
456
+ stale: false;
457
+ }> & {
458
+ type: "stack";
459
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
460
+ }>, "state", unknown>;
461
+ beforeRemove: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
462
+ key: string;
463
+ index: number;
464
+ routeNames: string[];
465
+ history?: unknown[];
466
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
467
+ type: string;
468
+ stale: false;
469
+ }> & Readonly<{
470
+ key: string;
471
+ index: number;
472
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
473
+ history?: unknown[];
474
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
475
+ type: string;
476
+ stale: false;
477
+ }> & {
478
+ type: "stack";
479
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
480
+ }>, "beforeRemove", true>;
481
+ }>) | undefined;
482
+ screenOptions?: (Omit<import("@react-navigation/elements").HeaderOptions, "headerLeft" | "headerTitle" | "headerRight"> & {
483
+ headerTitle?: string | ((props: import("@react-navigation/elements").HeaderTitleProps) => React.ReactNode);
484
+ headerLeft?: (props: import("@react-navigation/stack").StackHeaderLeftProps) => React.ReactNode;
485
+ headerRight?: (props: import("@react-navigation/stack").StackHeaderRightProps) => React.ReactNode;
486
+ headerBackAllowFontScaling?: boolean;
487
+ headerBackAccessibilityLabel?: string;
488
+ headerBackTestID?: string;
489
+ headerBackTitle?: string;
490
+ headerBackTruncatedTitle?: string;
491
+ headerBackButtonDisplayMode?: import("@react-navigation/elements").HeaderBackButtonDisplayMode;
492
+ headerBackTitleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
493
+ headerBackImage?: React.ComponentProps<typeof import("@react-navigation/elements").HeaderBackButton>["backImage"];
494
+ } & Partial<import("@react-navigation/stack").TransitionPreset> & {
495
+ title?: string;
496
+ header?: (props: import("@react-navigation/stack").StackHeaderProps) => React.ReactNode;
497
+ headerMode?: import("@react-navigation/stack/lib/typescript/src/types").StackHeaderMode;
498
+ headerShown?: boolean;
499
+ cardShadowEnabled?: boolean;
500
+ cardOverlayEnabled?: boolean;
501
+ cardOverlay?: (props: {
502
+ style: import("react-native").Animated.WithAnimatedValue<import("react-native").StyleProp<import("react-native").ViewStyle>>;
503
+ }) => React.ReactNode;
504
+ cardStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
505
+ presentation?: "card" | "modal" | "transparentModal";
506
+ animation?: import("@react-navigation/stack").StackAnimationName;
507
+ animationTypeForReplace?: "push" | "pop";
508
+ gestureEnabled?: boolean;
509
+ gestureResponseDistance?: number;
510
+ gestureVelocityImpact?: number;
511
+ detachPreviousScreen?: boolean;
512
+ keyboardHandlingEnabled?: boolean;
513
+ freezeOnBlur?: boolean;
514
+ autoHideHomeIndicator?: boolean;
515
+ } & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions) | ((props: {
516
+ route: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>;
517
+ navigation: (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T];
518
+ theme: ReactNavigation.Theme;
519
+ }) => Omit<import("@react-navigation/elements").HeaderOptions, "headerLeft" | "headerTitle" | "headerRight"> & {
520
+ headerTitle?: string | ((props: import("@react-navigation/elements").HeaderTitleProps) => React.ReactNode);
521
+ headerLeft?: (props: import("@react-navigation/stack").StackHeaderLeftProps) => React.ReactNode;
522
+ headerRight?: (props: import("@react-navigation/stack").StackHeaderRightProps) => React.ReactNode;
523
+ headerBackAllowFontScaling?: boolean;
524
+ headerBackAccessibilityLabel?: string;
525
+ headerBackTestID?: string;
526
+ headerBackTitle?: string;
527
+ headerBackTruncatedTitle?: string;
528
+ headerBackButtonDisplayMode?: import("@react-navigation/elements").HeaderBackButtonDisplayMode;
529
+ headerBackTitleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
530
+ headerBackImage?: React.ComponentProps<typeof import("@react-navigation/elements").HeaderBackButton>["backImage"];
531
+ } & Partial<import("@react-navigation/stack").TransitionPreset> & {
532
+ title?: string;
533
+ header?: (props: import("@react-navigation/stack").StackHeaderProps) => React.ReactNode;
534
+ headerMode?: import("@react-navigation/stack/lib/typescript/src/types").StackHeaderMode;
535
+ headerShown?: boolean;
536
+ cardShadowEnabled?: boolean;
537
+ cardOverlayEnabled?: boolean;
538
+ cardOverlay?: (props: {
539
+ style: import("react-native").Animated.WithAnimatedValue<import("react-native").StyleProp<import("react-native").ViewStyle>>;
540
+ }) => React.ReactNode;
541
+ cardStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
542
+ presentation?: "card" | "modal" | "transparentModal";
543
+ animation?: import("@react-navigation/stack").StackAnimationName;
544
+ animationTypeForReplace?: "push" | "pop";
545
+ gestureEnabled?: boolean;
546
+ gestureResponseDistance?: number;
547
+ gestureVelocityImpact?: number;
548
+ detachPreviousScreen?: boolean;
549
+ keyboardHandlingEnabled?: boolean;
550
+ freezeOnBlur?: boolean;
551
+ autoHideHomeIndicator?: boolean;
552
+ } & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions) | undefined;
553
+ screenLayout?: ((props: import("@react-navigation/native").ScreenLayoutArgs<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T, Omit<import("@react-navigation/elements").HeaderOptions, "headerLeft" | "headerTitle" | "headerRight"> & {
554
+ headerTitle?: string | ((props: import("@react-navigation/elements").HeaderTitleProps) => React.ReactNode);
555
+ headerLeft?: (props: import("@react-navigation/stack").StackHeaderLeftProps) => React.ReactNode;
556
+ headerRight?: (props: import("@react-navigation/stack").StackHeaderRightProps) => React.ReactNode;
557
+ headerBackAllowFontScaling?: boolean;
558
+ headerBackAccessibilityLabel?: string;
559
+ headerBackTestID?: string;
560
+ headerBackTitle?: string;
561
+ headerBackTruncatedTitle?: string;
562
+ headerBackButtonDisplayMode?: import("@react-navigation/elements").HeaderBackButtonDisplayMode;
563
+ headerBackTitleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
564
+ headerBackImage?: React.ComponentProps<typeof import("@react-navigation/elements").HeaderBackButton>["backImage"];
565
+ } & Partial<import("@react-navigation/stack").TransitionPreset> & {
566
+ title?: string;
567
+ header?: (props: import("@react-navigation/stack").StackHeaderProps) => React.ReactNode;
568
+ headerMode?: import("@react-navigation/stack/lib/typescript/src/types").StackHeaderMode;
569
+ headerShown?: boolean;
570
+ cardShadowEnabled?: boolean;
571
+ cardOverlayEnabled?: boolean;
572
+ cardOverlay?: (props: {
573
+ style: import("react-native").Animated.WithAnimatedValue<import("react-native").StyleProp<import("react-native").ViewStyle>>;
574
+ }) => React.ReactNode;
575
+ cardStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
576
+ presentation?: "card" | "modal" | "transparentModal";
577
+ animation?: import("@react-navigation/stack").StackAnimationName;
578
+ animationTypeForReplace?: "push" | "pop";
579
+ gestureEnabled?: boolean;
580
+ gestureResponseDistance?: number;
581
+ gestureVelocityImpact?: number;
582
+ detachPreviousScreen?: boolean;
583
+ keyboardHandlingEnabled?: boolean;
584
+ freezeOnBlur?: boolean;
585
+ autoHideHomeIndicator?: boolean;
586
+ } & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T]>) => React.ReactElement) | undefined;
587
+ UNSTABLE_router?: (<Action extends Readonly<{
588
+ type: string;
589
+ payload?: object;
590
+ source?: string;
591
+ target?: string;
592
+ }>>(original: import("@react-navigation/native").Router<Readonly<{
593
+ key: string;
594
+ index: number;
595
+ routeNames: string[];
596
+ history?: unknown[];
597
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
598
+ type: string;
599
+ stale: false;
600
+ }> & Readonly<{
601
+ key: string;
602
+ index: number;
603
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
604
+ history?: unknown[];
605
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
606
+ type: string;
607
+ stale: false;
608
+ }> & {
609
+ type: "stack";
610
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
611
+ }, Action>) => Partial<import("@react-navigation/native").Router<Readonly<{
612
+ key: string;
613
+ index: number;
614
+ routeNames: string[];
615
+ history?: unknown[];
616
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
617
+ type: string;
618
+ stale: false;
619
+ }> & Readonly<{
620
+ key: string;
621
+ index: number;
622
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
623
+ history?: unknown[];
624
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
625
+ type: string;
626
+ stale: false;
627
+ }> & {
628
+ type: "stack";
629
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
630
+ }, Action>>) | undefined;
631
+ UNSTABLE_routeNamesChangeBehavior?: "firstMatch" | "lastUnhandled";
632
+ } & ({
633
+ id?: undefined;
634
+ } | {
635
+ id: string;
636
+ }))), "initialRouteName"> & {
637
+ children?: React.ReactNode;
638
+ }) => import("react").JSX.Element | null;
639
+ Group: import("react").ComponentType<import("@react-navigation/native").RouteGroupConfig<CoreStackParamListBase & T, Omit<import("@react-navigation/elements").HeaderOptions, "headerLeft" | "headerTitle" | "headerRight"> & {
640
+ headerTitle?: string | ((props: import("@react-navigation/elements").HeaderTitleProps) => React.ReactNode);
641
+ headerLeft?: (props: import("@react-navigation/stack").StackHeaderLeftProps) => React.ReactNode;
642
+ headerRight?: (props: import("@react-navigation/stack").StackHeaderRightProps) => React.ReactNode;
643
+ headerBackAllowFontScaling?: boolean;
644
+ headerBackAccessibilityLabel?: string;
645
+ headerBackTestID?: string;
646
+ headerBackTitle?: string;
647
+ headerBackTruncatedTitle?: string;
648
+ headerBackButtonDisplayMode?: import("@react-navigation/elements").HeaderBackButtonDisplayMode;
649
+ headerBackTitleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
650
+ headerBackImage?: React.ComponentProps<typeof import("@react-navigation/elements").HeaderBackButton>["backImage"];
651
+ } & Partial<import("@react-navigation/stack").TransitionPreset> & {
652
+ title?: string;
653
+ header?: (props: import("@react-navigation/stack").StackHeaderProps) => React.ReactNode;
654
+ headerMode?: import("@react-navigation/stack/lib/typescript/src/types").StackHeaderMode;
655
+ headerShown?: boolean;
656
+ cardShadowEnabled?: boolean;
657
+ cardOverlayEnabled?: boolean;
658
+ cardOverlay?: (props: {
659
+ style: import("react-native").Animated.WithAnimatedValue<import("react-native").StyleProp<import("react-native").ViewStyle>>;
660
+ }) => React.ReactNode;
661
+ cardStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
662
+ presentation?: "card" | "modal" | "transparentModal";
663
+ animation?: import("@react-navigation/stack").StackAnimationName;
664
+ animationTypeForReplace?: "push" | "pop";
665
+ gestureEnabled?: boolean;
666
+ gestureResponseDistance?: number;
667
+ gestureVelocityImpact?: number;
668
+ detachPreviousScreen?: boolean;
669
+ keyboardHandlingEnabled?: boolean;
670
+ freezeOnBlur?: boolean;
671
+ autoHideHomeIndicator?: boolean;
672
+ } & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T]>>;
673
+ Screen: <RouteName extends keyof CoreStackParamListBase | keyof T>(_: import("@react-navigation/native").RouteConfig<CoreStackParamListBase & T, RouteName, Readonly<{
674
+ key: string;
675
+ index: number;
676
+ routeNames: string[];
677
+ history?: unknown[];
678
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
679
+ type: string;
680
+ stale: false;
681
+ }> & Readonly<{
682
+ key: string;
683
+ index: number;
684
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
685
+ history?: unknown[];
686
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
687
+ type: string;
688
+ stale: false;
689
+ }> & {
690
+ type: "stack";
691
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
692
+ }, Omit<import("@react-navigation/elements").HeaderOptions, "headerLeft" | "headerTitle" | "headerRight"> & {
693
+ headerTitle?: string | ((props: import("@react-navigation/elements").HeaderTitleProps) => React.ReactNode);
694
+ headerLeft?: (props: import("@react-navigation/stack").StackHeaderLeftProps) => React.ReactNode;
695
+ headerRight?: (props: import("@react-navigation/stack").StackHeaderRightProps) => React.ReactNode;
696
+ headerBackAllowFontScaling?: boolean;
697
+ headerBackAccessibilityLabel?: string;
698
+ headerBackTestID?: string;
699
+ headerBackTitle?: string;
700
+ headerBackTruncatedTitle?: string;
701
+ headerBackButtonDisplayMode?: import("@react-navigation/elements").HeaderBackButtonDisplayMode;
702
+ headerBackTitleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
703
+ headerBackImage?: React.ComponentProps<typeof import("@react-navigation/elements").HeaderBackButton>["backImage"];
704
+ } & Partial<import("@react-navigation/stack").TransitionPreset> & {
705
+ title?: string;
706
+ header?: (props: import("@react-navigation/stack").StackHeaderProps) => React.ReactNode;
707
+ headerMode?: import("@react-navigation/stack/lib/typescript/src/types").StackHeaderMode;
708
+ headerShown?: boolean;
709
+ cardShadowEnabled?: boolean;
710
+ cardOverlayEnabled?: boolean;
711
+ cardOverlay?: (props: {
712
+ style: import("react-native").Animated.WithAnimatedValue<import("react-native").StyleProp<import("react-native").ViewStyle>>;
713
+ }) => React.ReactNode;
714
+ cardStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
715
+ presentation?: "card" | "modal" | "transparentModal";
716
+ animation?: import("@react-navigation/stack").StackAnimationName;
717
+ animationTypeForReplace?: "push" | "pop";
718
+ gestureEnabled?: boolean;
719
+ gestureResponseDistance?: number;
720
+ gestureVelocityImpact?: number;
721
+ detachPreviousScreen?: boolean;
722
+ keyboardHandlingEnabled?: boolean;
723
+ freezeOnBlur?: boolean;
724
+ autoHideHomeIndicator?: boolean;
725
+ } & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/stack").StackNavigationEventMap, (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[RouteName]>) => null;
726
+ };
727
+ export declare const createNativeStackCoreNavigator: <T extends ParamListBase>(config: MadConfig<T>) => {
728
+ Navigator: (props: Omit<Omit<any, "children" | "id" | "initialRouteName" | "layout" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router" | "UNSTABLE_routeNamesChangeBehavior"> & (import("@react-navigation/native").DefaultRouterOptions<keyof CoreStackParamListBase | Extract<keyof T, string>> & ({
729
+ children: React.ReactNode;
730
+ layout?: ((props: {
731
+ state: Readonly<{
732
+ key: string;
733
+ index: number;
734
+ routeNames: string[];
735
+ history?: unknown[];
736
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
737
+ type: string;
738
+ stale: false;
739
+ }> & Readonly<{
740
+ key: string;
741
+ index: number;
742
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
743
+ history?: unknown[];
744
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
745
+ type: string;
746
+ stale: false;
747
+ }> & {
748
+ type: "stack";
749
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
750
+ };
751
+ navigation: import("@react-navigation/native").NavigationHelpers<CoreStackParamListBase & T, {}>;
752
+ descriptors: Record<string, import("@react-navigation/native").Descriptor<import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/native").NavigationProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T, string | undefined, Readonly<{
753
+ key: string;
754
+ index: number;
755
+ routeNames: string[];
756
+ history?: unknown[];
757
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
758
+ type: string;
759
+ stale: false;
760
+ }> & Readonly<{
761
+ key: string;
762
+ index: number;
763
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
764
+ history?: unknown[];
765
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
766
+ type: string;
767
+ stale: false;
768
+ }> & {
769
+ type: "stack";
770
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
771
+ }, import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/native-stack").NativeStackNavigationEventMap>, import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>>>;
772
+ children: React.ReactNode;
773
+ }) => React.ReactElement) | undefined;
774
+ screenListeners?: Partial<{
775
+ transitionStart: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
776
+ key: string;
777
+ index: number;
778
+ routeNames: string[];
779
+ history?: unknown[];
780
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
781
+ type: string;
782
+ stale: false;
783
+ }> & Readonly<{
784
+ key: string;
785
+ index: number;
786
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
787
+ history?: unknown[];
788
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
789
+ type: string;
790
+ stale: false;
791
+ }> & {
792
+ type: "stack";
793
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
794
+ }>, "transitionStart", unknown>;
795
+ transitionEnd: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
796
+ key: string;
797
+ index: number;
798
+ routeNames: string[];
799
+ history?: unknown[];
800
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
801
+ type: string;
802
+ stale: false;
803
+ }> & Readonly<{
804
+ key: string;
805
+ index: number;
806
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
807
+ history?: unknown[];
808
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
809
+ type: string;
810
+ stale: false;
811
+ }> & {
812
+ type: "stack";
813
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
814
+ }>, "transitionEnd", unknown>;
815
+ gestureCancel: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
816
+ key: string;
817
+ index: number;
818
+ routeNames: string[];
819
+ history?: unknown[];
820
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
821
+ type: string;
822
+ stale: false;
823
+ }> & Readonly<{
824
+ key: string;
825
+ index: number;
826
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
827
+ history?: unknown[];
828
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
829
+ type: string;
830
+ stale: false;
831
+ }> & {
832
+ type: "stack";
833
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
834
+ }>, "gestureCancel", unknown>;
835
+ sheetDetentChange: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
836
+ key: string;
837
+ index: number;
838
+ routeNames: string[];
839
+ history?: unknown[];
840
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
841
+ type: string;
842
+ stale: false;
843
+ }> & Readonly<{
844
+ key: string;
845
+ index: number;
846
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
847
+ history?: unknown[];
848
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
849
+ type: string;
850
+ stale: false;
851
+ }> & {
852
+ type: "stack";
853
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
854
+ }>, "sheetDetentChange", unknown>;
855
+ focus: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
856
+ key: string;
857
+ index: number;
858
+ routeNames: string[];
859
+ history?: unknown[];
860
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
861
+ type: string;
862
+ stale: false;
863
+ }> & Readonly<{
864
+ key: string;
865
+ index: number;
866
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
867
+ history?: unknown[];
868
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
869
+ type: string;
870
+ stale: false;
871
+ }> & {
872
+ type: "stack";
873
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
874
+ }>, "focus", unknown>;
875
+ blur: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
876
+ key: string;
877
+ index: number;
878
+ routeNames: string[];
879
+ history?: unknown[];
880
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
881
+ type: string;
882
+ stale: false;
883
+ }> & Readonly<{
884
+ key: string;
885
+ index: number;
886
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
887
+ history?: unknown[];
888
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
889
+ type: string;
890
+ stale: false;
891
+ }> & {
892
+ type: "stack";
893
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
894
+ }>, "blur", unknown>;
895
+ state: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
896
+ key: string;
897
+ index: number;
898
+ routeNames: string[];
899
+ history?: unknown[];
900
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
901
+ type: string;
902
+ stale: false;
903
+ }> & Readonly<{
904
+ key: string;
905
+ index: number;
906
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
907
+ history?: unknown[];
908
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
909
+ type: string;
910
+ stale: false;
911
+ }> & {
912
+ type: "stack";
913
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
914
+ }>, "state", unknown>;
915
+ beforeRemove: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
916
+ key: string;
917
+ index: number;
918
+ routeNames: string[];
919
+ history?: unknown[];
920
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
921
+ type: string;
922
+ stale: false;
923
+ }> & Readonly<{
924
+ key: string;
925
+ index: number;
926
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
927
+ history?: unknown[];
928
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
929
+ type: string;
930
+ stale: false;
931
+ }> & {
932
+ type: "stack";
933
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
934
+ }>, "beforeRemove", true>;
935
+ }> | ((props: {
936
+ route: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>;
937
+ navigation: (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T];
938
+ }) => Partial<{
939
+ transitionStart: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
940
+ key: string;
941
+ index: number;
942
+ routeNames: string[];
943
+ history?: unknown[];
944
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
945
+ type: string;
946
+ stale: false;
947
+ }> & Readonly<{
948
+ key: string;
949
+ index: number;
950
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
951
+ history?: unknown[];
952
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
953
+ type: string;
954
+ stale: false;
955
+ }> & {
956
+ type: "stack";
957
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
958
+ }>, "transitionStart", unknown>;
959
+ transitionEnd: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
960
+ key: string;
961
+ index: number;
962
+ routeNames: string[];
963
+ history?: unknown[];
964
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
965
+ type: string;
966
+ stale: false;
967
+ }> & Readonly<{
968
+ key: string;
969
+ index: number;
970
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
971
+ history?: unknown[];
972
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
973
+ type: string;
974
+ stale: false;
975
+ }> & {
976
+ type: "stack";
977
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
978
+ }>, "transitionEnd", unknown>;
979
+ gestureCancel: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
980
+ key: string;
981
+ index: number;
982
+ routeNames: string[];
983
+ history?: unknown[];
984
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
985
+ type: string;
986
+ stale: false;
987
+ }> & Readonly<{
988
+ key: string;
989
+ index: number;
990
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
991
+ history?: unknown[];
992
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
993
+ type: string;
994
+ stale: false;
995
+ }> & {
996
+ type: "stack";
997
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
998
+ }>, "gestureCancel", unknown>;
999
+ sheetDetentChange: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1000
+ key: string;
1001
+ index: number;
1002
+ routeNames: string[];
1003
+ history?: unknown[];
1004
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1005
+ type: string;
1006
+ stale: false;
1007
+ }> & Readonly<{
1008
+ key: string;
1009
+ index: number;
1010
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1011
+ history?: unknown[];
1012
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1013
+ type: string;
1014
+ stale: false;
1015
+ }> & {
1016
+ type: "stack";
1017
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1018
+ }>, "sheetDetentChange", unknown>;
1019
+ focus: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1020
+ key: string;
1021
+ index: number;
1022
+ routeNames: string[];
1023
+ history?: unknown[];
1024
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1025
+ type: string;
1026
+ stale: false;
1027
+ }> & Readonly<{
1028
+ key: string;
1029
+ index: number;
1030
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1031
+ history?: unknown[];
1032
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1033
+ type: string;
1034
+ stale: false;
1035
+ }> & {
1036
+ type: "stack";
1037
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1038
+ }>, "focus", unknown>;
1039
+ blur: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1040
+ key: string;
1041
+ index: number;
1042
+ routeNames: string[];
1043
+ history?: unknown[];
1044
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1045
+ type: string;
1046
+ stale: false;
1047
+ }> & Readonly<{
1048
+ key: string;
1049
+ index: number;
1050
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1051
+ history?: unknown[];
1052
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1053
+ type: string;
1054
+ stale: false;
1055
+ }> & {
1056
+ type: "stack";
1057
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1058
+ }>, "blur", unknown>;
1059
+ state: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1060
+ key: string;
1061
+ index: number;
1062
+ routeNames: string[];
1063
+ history?: unknown[];
1064
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1065
+ type: string;
1066
+ stale: false;
1067
+ }> & Readonly<{
1068
+ key: string;
1069
+ index: number;
1070
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1071
+ history?: unknown[];
1072
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1073
+ type: string;
1074
+ stale: false;
1075
+ }> & {
1076
+ type: "stack";
1077
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1078
+ }>, "state", unknown>;
1079
+ beforeRemove: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1080
+ key: string;
1081
+ index: number;
1082
+ routeNames: string[];
1083
+ history?: unknown[];
1084
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1085
+ type: string;
1086
+ stale: false;
1087
+ }> & Readonly<{
1088
+ key: string;
1089
+ index: number;
1090
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1091
+ history?: unknown[];
1092
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1093
+ type: string;
1094
+ stale: false;
1095
+ }> & {
1096
+ type: "stack";
1097
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1098
+ }>, "beforeRemove", true>;
1099
+ }>) | undefined;
1100
+ screenOptions?: (import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions) | ((props: {
1101
+ route: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>;
1102
+ navigation: (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T];
1103
+ theme: ReactNavigation.Theme;
1104
+ }) => import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions) | undefined;
1105
+ screenLayout?: ((props: import("@react-navigation/native").ScreenLayoutArgs<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T, import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T]>) => React.ReactElement) | undefined;
1106
+ UNSTABLE_router?: (<Action extends Readonly<{
1107
+ type: string;
1108
+ payload?: object;
1109
+ source?: string;
1110
+ target?: string;
1111
+ }>>(original: import("@react-navigation/native").Router<Readonly<{
1112
+ key: string;
1113
+ index: number;
1114
+ routeNames: string[];
1115
+ history?: unknown[];
1116
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1117
+ type: string;
1118
+ stale: false;
1119
+ }> & Readonly<{
1120
+ key: string;
1121
+ index: number;
1122
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1123
+ history?: unknown[];
1124
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1125
+ type: string;
1126
+ stale: false;
1127
+ }> & {
1128
+ type: "stack";
1129
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1130
+ }, Action>) => Partial<import("@react-navigation/native").Router<Readonly<{
1131
+ key: string;
1132
+ index: number;
1133
+ routeNames: string[];
1134
+ history?: unknown[];
1135
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1136
+ type: string;
1137
+ stale: false;
1138
+ }> & Readonly<{
1139
+ key: string;
1140
+ index: number;
1141
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1142
+ history?: unknown[];
1143
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1144
+ type: string;
1145
+ stale: false;
1146
+ }> & {
1147
+ type: "stack";
1148
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1149
+ }, Action>>) | undefined;
1150
+ UNSTABLE_routeNamesChangeBehavior?: "firstMatch" | "lastUnhandled";
1151
+ } & ({
1152
+ id?: undefined;
1153
+ } | {
1154
+ id: string;
1155
+ }))), "initialRouteName"> & {
1156
+ children?: React.ReactNode;
1157
+ }) => import("react").JSX.Element | null;
1158
+ Group: import("react").ComponentType<import("@react-navigation/native").RouteGroupConfig<CoreStackParamListBase & T, import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T]>>;
1159
+ Screen: <RouteName extends keyof CoreStackParamListBase | keyof T>(_: import("@react-navigation/native").RouteConfig<CoreStackParamListBase & T, RouteName, Readonly<{
1160
+ key: string;
1161
+ index: number;
1162
+ routeNames: string[];
1163
+ history?: unknown[];
1164
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1165
+ type: string;
1166
+ stale: false;
1167
+ }> & Readonly<{
1168
+ key: string;
1169
+ index: number;
1170
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1171
+ history?: unknown[];
1172
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1173
+ type: string;
1174
+ stale: false;
1175
+ }> & {
1176
+ type: "stack";
1177
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1178
+ }, import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/native-stack").NativeStackNavigationEventMap, (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[RouteName]>) => null;
1179
+ };
5
1180
  /**
6
1181
  *
7
1182
  * @deprecated This functions is replaced by `createStackCoreNavigator` and `createNativeStackCoreNavigator`. USE `createNativeStackCoreNavigator` IF YOU DON'T WANT BREAKING CHANGES IN YOUR APP
8
1183
  */
9
- export declare const createCoreStackNavigator: <T extends ParamListBase>(config: MadConfig<T>) => any;
1184
+ export declare const createCoreStackNavigator: <T extends ParamListBase>(config: MadConfig<T>) => {
1185
+ Navigator: (props: Omit<Omit<any, "children" | "id" | "initialRouteName" | "layout" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router" | "UNSTABLE_routeNamesChangeBehavior"> & (import("@react-navigation/native").DefaultRouterOptions<keyof CoreStackParamListBase | Extract<keyof T, string>> & ({
1186
+ children: React.ReactNode;
1187
+ layout?: ((props: {
1188
+ state: Readonly<{
1189
+ key: string;
1190
+ index: number;
1191
+ routeNames: string[];
1192
+ history?: unknown[];
1193
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1194
+ type: string;
1195
+ stale: false;
1196
+ }> & Readonly<{
1197
+ key: string;
1198
+ index: number;
1199
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1200
+ history?: unknown[];
1201
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1202
+ type: string;
1203
+ stale: false;
1204
+ }> & {
1205
+ type: "stack";
1206
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1207
+ };
1208
+ navigation: import("@react-navigation/native").NavigationHelpers<CoreStackParamListBase & T, {}>;
1209
+ descriptors: Record<string, import("@react-navigation/native").Descriptor<import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/native").NavigationProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T, string | undefined, Readonly<{
1210
+ key: string;
1211
+ index: number;
1212
+ routeNames: string[];
1213
+ history?: unknown[];
1214
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1215
+ type: string;
1216
+ stale: false;
1217
+ }> & Readonly<{
1218
+ key: string;
1219
+ index: number;
1220
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1221
+ history?: unknown[];
1222
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1223
+ type: string;
1224
+ stale: false;
1225
+ }> & {
1226
+ type: "stack";
1227
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1228
+ }, import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/native-stack").NativeStackNavigationEventMap>, import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>>>;
1229
+ children: React.ReactNode;
1230
+ }) => React.ReactElement) | undefined;
1231
+ screenListeners?: Partial<{
1232
+ transitionStart: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1233
+ key: string;
1234
+ index: number;
1235
+ routeNames: string[];
1236
+ history?: unknown[];
1237
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1238
+ type: string;
1239
+ stale: false;
1240
+ }> & Readonly<{
1241
+ key: string;
1242
+ index: number;
1243
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1244
+ history?: unknown[];
1245
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1246
+ type: string;
1247
+ stale: false;
1248
+ }> & {
1249
+ type: "stack";
1250
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1251
+ }>, "transitionStart", unknown>;
1252
+ transitionEnd: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1253
+ key: string;
1254
+ index: number;
1255
+ routeNames: string[];
1256
+ history?: unknown[];
1257
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1258
+ type: string;
1259
+ stale: false;
1260
+ }> & Readonly<{
1261
+ key: string;
1262
+ index: number;
1263
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1264
+ history?: unknown[];
1265
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1266
+ type: string;
1267
+ stale: false;
1268
+ }> & {
1269
+ type: "stack";
1270
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1271
+ }>, "transitionEnd", unknown>;
1272
+ gestureCancel: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1273
+ key: string;
1274
+ index: number;
1275
+ routeNames: string[];
1276
+ history?: unknown[];
1277
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1278
+ type: string;
1279
+ stale: false;
1280
+ }> & Readonly<{
1281
+ key: string;
1282
+ index: number;
1283
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1284
+ history?: unknown[];
1285
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1286
+ type: string;
1287
+ stale: false;
1288
+ }> & {
1289
+ type: "stack";
1290
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1291
+ }>, "gestureCancel", unknown>;
1292
+ sheetDetentChange: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1293
+ key: string;
1294
+ index: number;
1295
+ routeNames: string[];
1296
+ history?: unknown[];
1297
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1298
+ type: string;
1299
+ stale: false;
1300
+ }> & Readonly<{
1301
+ key: string;
1302
+ index: number;
1303
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1304
+ history?: unknown[];
1305
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1306
+ type: string;
1307
+ stale: false;
1308
+ }> & {
1309
+ type: "stack";
1310
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1311
+ }>, "sheetDetentChange", unknown>;
1312
+ focus: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1313
+ key: string;
1314
+ index: number;
1315
+ routeNames: string[];
1316
+ history?: unknown[];
1317
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1318
+ type: string;
1319
+ stale: false;
1320
+ }> & Readonly<{
1321
+ key: string;
1322
+ index: number;
1323
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1324
+ history?: unknown[];
1325
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1326
+ type: string;
1327
+ stale: false;
1328
+ }> & {
1329
+ type: "stack";
1330
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1331
+ }>, "focus", unknown>;
1332
+ blur: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1333
+ key: string;
1334
+ index: number;
1335
+ routeNames: string[];
1336
+ history?: unknown[];
1337
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1338
+ type: string;
1339
+ stale: false;
1340
+ }> & Readonly<{
1341
+ key: string;
1342
+ index: number;
1343
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1344
+ history?: unknown[];
1345
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1346
+ type: string;
1347
+ stale: false;
1348
+ }> & {
1349
+ type: "stack";
1350
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1351
+ }>, "blur", unknown>;
1352
+ state: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1353
+ key: string;
1354
+ index: number;
1355
+ routeNames: string[];
1356
+ history?: unknown[];
1357
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1358
+ type: string;
1359
+ stale: false;
1360
+ }> & Readonly<{
1361
+ key: string;
1362
+ index: number;
1363
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1364
+ history?: unknown[];
1365
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1366
+ type: string;
1367
+ stale: false;
1368
+ }> & {
1369
+ type: "stack";
1370
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1371
+ }>, "state", unknown>;
1372
+ beforeRemove: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1373
+ key: string;
1374
+ index: number;
1375
+ routeNames: string[];
1376
+ history?: unknown[];
1377
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1378
+ type: string;
1379
+ stale: false;
1380
+ }> & Readonly<{
1381
+ key: string;
1382
+ index: number;
1383
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1384
+ history?: unknown[];
1385
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1386
+ type: string;
1387
+ stale: false;
1388
+ }> & {
1389
+ type: "stack";
1390
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1391
+ }>, "beforeRemove", true>;
1392
+ }> | ((props: {
1393
+ route: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>;
1394
+ navigation: (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T];
1395
+ }) => Partial<{
1396
+ transitionStart: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1397
+ key: string;
1398
+ index: number;
1399
+ routeNames: string[];
1400
+ history?: unknown[];
1401
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1402
+ type: string;
1403
+ stale: false;
1404
+ }> & Readonly<{
1405
+ key: string;
1406
+ index: number;
1407
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1408
+ history?: unknown[];
1409
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1410
+ type: string;
1411
+ stale: false;
1412
+ }> & {
1413
+ type: "stack";
1414
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1415
+ }>, "transitionStart", unknown>;
1416
+ transitionEnd: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1417
+ key: string;
1418
+ index: number;
1419
+ routeNames: string[];
1420
+ history?: unknown[];
1421
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1422
+ type: string;
1423
+ stale: false;
1424
+ }> & Readonly<{
1425
+ key: string;
1426
+ index: number;
1427
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1428
+ history?: unknown[];
1429
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1430
+ type: string;
1431
+ stale: false;
1432
+ }> & {
1433
+ type: "stack";
1434
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1435
+ }>, "transitionEnd", unknown>;
1436
+ gestureCancel: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1437
+ key: string;
1438
+ index: number;
1439
+ routeNames: string[];
1440
+ history?: unknown[];
1441
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1442
+ type: string;
1443
+ stale: false;
1444
+ }> & Readonly<{
1445
+ key: string;
1446
+ index: number;
1447
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1448
+ history?: unknown[];
1449
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1450
+ type: string;
1451
+ stale: false;
1452
+ }> & {
1453
+ type: "stack";
1454
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1455
+ }>, "gestureCancel", unknown>;
1456
+ sheetDetentChange: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1457
+ key: string;
1458
+ index: number;
1459
+ routeNames: string[];
1460
+ history?: unknown[];
1461
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1462
+ type: string;
1463
+ stale: false;
1464
+ }> & Readonly<{
1465
+ key: string;
1466
+ index: number;
1467
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1468
+ history?: unknown[];
1469
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1470
+ type: string;
1471
+ stale: false;
1472
+ }> & {
1473
+ type: "stack";
1474
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1475
+ }>, "sheetDetentChange", unknown>;
1476
+ focus: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1477
+ key: string;
1478
+ index: number;
1479
+ routeNames: string[];
1480
+ history?: unknown[];
1481
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1482
+ type: string;
1483
+ stale: false;
1484
+ }> & Readonly<{
1485
+ key: string;
1486
+ index: number;
1487
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1488
+ history?: unknown[];
1489
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1490
+ type: string;
1491
+ stale: false;
1492
+ }> & {
1493
+ type: "stack";
1494
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1495
+ }>, "focus", unknown>;
1496
+ blur: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1497
+ key: string;
1498
+ index: number;
1499
+ routeNames: string[];
1500
+ history?: unknown[];
1501
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1502
+ type: string;
1503
+ stale: false;
1504
+ }> & Readonly<{
1505
+ key: string;
1506
+ index: number;
1507
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1508
+ history?: unknown[];
1509
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1510
+ type: string;
1511
+ stale: false;
1512
+ }> & {
1513
+ type: "stack";
1514
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1515
+ }>, "blur", unknown>;
1516
+ state: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1517
+ key: string;
1518
+ index: number;
1519
+ routeNames: string[];
1520
+ history?: unknown[];
1521
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1522
+ type: string;
1523
+ stale: false;
1524
+ }> & Readonly<{
1525
+ key: string;
1526
+ index: number;
1527
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1528
+ history?: unknown[];
1529
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1530
+ type: string;
1531
+ stale: false;
1532
+ }> & {
1533
+ type: "stack";
1534
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1535
+ }>, "state", unknown>;
1536
+ beforeRemove: import("@react-navigation/native").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/native").EventMapCore<Readonly<{
1537
+ key: string;
1538
+ index: number;
1539
+ routeNames: string[];
1540
+ history?: unknown[];
1541
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1542
+ type: string;
1543
+ stale: false;
1544
+ }> & Readonly<{
1545
+ key: string;
1546
+ index: number;
1547
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1548
+ history?: unknown[];
1549
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1550
+ type: string;
1551
+ stale: false;
1552
+ }> & {
1553
+ type: "stack";
1554
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1555
+ }>, "beforeRemove", true>;
1556
+ }>) | undefined;
1557
+ screenOptions?: (import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions) | ((props: {
1558
+ route: import("@react-navigation/native").RouteProp<CoreStackParamListBase & T, keyof CoreStackParamListBase | Extract<keyof T, string>>;
1559
+ navigation: (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T];
1560
+ theme: ReactNavigation.Theme;
1561
+ }) => import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions) | undefined;
1562
+ screenLayout?: ((props: import("@react-navigation/native").ScreenLayoutArgs<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T, import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T]>) => React.ReactElement) | undefined;
1563
+ UNSTABLE_router?: (<Action extends Readonly<{
1564
+ type: string;
1565
+ payload?: object;
1566
+ source?: string;
1567
+ target?: string;
1568
+ }>>(original: import("@react-navigation/native").Router<Readonly<{
1569
+ key: string;
1570
+ index: number;
1571
+ routeNames: string[];
1572
+ history?: unknown[];
1573
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1574
+ type: string;
1575
+ stale: false;
1576
+ }> & Readonly<{
1577
+ key: string;
1578
+ index: number;
1579
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1580
+ history?: unknown[];
1581
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1582
+ type: string;
1583
+ stale: false;
1584
+ }> & {
1585
+ type: "stack";
1586
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1587
+ }, Action>) => Partial<import("@react-navigation/native").Router<Readonly<{
1588
+ key: string;
1589
+ index: number;
1590
+ routeNames: string[];
1591
+ history?: unknown[];
1592
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1593
+ type: string;
1594
+ stale: false;
1595
+ }> & Readonly<{
1596
+ key: string;
1597
+ index: number;
1598
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1599
+ history?: unknown[];
1600
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1601
+ type: string;
1602
+ stale: false;
1603
+ }> & {
1604
+ type: "stack";
1605
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1606
+ }, Action>>) | undefined;
1607
+ UNSTABLE_routeNamesChangeBehavior?: "firstMatch" | "lastUnhandled";
1608
+ } & ({
1609
+ id?: undefined;
1610
+ } | {
1611
+ id: string;
1612
+ }))), "initialRouteName"> & {
1613
+ children?: React.ReactNode;
1614
+ }) => import("react").JSX.Element | null;
1615
+ Group: import("react").ComponentType<import("@react-navigation/native").RouteGroupConfig<CoreStackParamListBase & T, import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[keyof CoreStackParamListBase | keyof T]>>;
1616
+ Screen: <RouteName extends keyof CoreStackParamListBase | keyof T>(_: import("@react-navigation/native").RouteConfig<CoreStackParamListBase & T, RouteName, Readonly<{
1617
+ key: string;
1618
+ index: number;
1619
+ routeNames: string[];
1620
+ history?: unknown[];
1621
+ routes: import("@react-navigation/native").NavigationRoute<ParamListBase, string>[];
1622
+ type: string;
1623
+ stale: false;
1624
+ }> & Readonly<{
1625
+ key: string;
1626
+ index: number;
1627
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1628
+ history?: unknown[];
1629
+ routes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1630
+ type: string;
1631
+ stale: false;
1632
+ }> & {
1633
+ type: "stack";
1634
+ preloadedRoutes: import("@react-navigation/native").NavigationRoute<CoreStackParamListBase & T, keyof CoreStackParamListBase | keyof T>[];
1635
+ }, import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/native-stack").NativeStackNavigationEventMap, (import("@react-navigation/native").NavigationListBase<ParamListBase> & import("@react-navigation/native").NavigationListBase<CoreStackParamListBase & T>)[RouteName]>) => null;
1636
+ };