@equinor/mad-core 0.18.1 → 0.20.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 (60) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/authenticate.d.ts +1 -0
  3. package/dist/authenticate.js +11 -0
  4. package/dist/{chunk-WEJ4LF6M.js → chunk-23OTW4NC.js} +4 -4
  5. package/dist/{chunk-DGIAXVWS.js → chunk-DIZ362AR.js} +4 -4
  6. package/dist/{chunk-AXY3DL65.js → chunk-GBEOV7WV.js} +5 -5
  7. package/dist/{chunk-NYC63GQG.js → chunk-HF4AHBXJ.js} +45 -16
  8. package/dist/{chunk-KEFHOMOW.js → chunk-HYW645OK.js} +2 -2
  9. package/dist/{chunk-GQ2R7AYC.js → chunk-K2VWLSI5.js} +5 -1
  10. package/dist/chunk-Q6MDFVOP.js +13 -0
  11. package/dist/chunk-R2XOBAJJ.js +27 -0
  12. package/dist/{chunk-PQODWSOK.js → chunk-VKFXR4QU.js} +1 -1
  13. package/dist/chunk-YBNZ6RXF.js +0 -0
  14. package/dist/{chunk-T4TC3AQN.js → chunk-YMZLQKMK.js} +1 -1
  15. package/dist/chunk-Z4YHNPXU.js +25 -0
  16. package/dist/{chunk-V6VOTEDJ.js → chunk-ZJMIK3ZV.js} +4 -4
  17. package/dist/components/OfflineBanner.js +1 -1
  18. package/dist/components/createCoreStackNavigator.d.ts +1631 -4
  19. package/dist/components/createCoreStackNavigator.js +39 -35
  20. package/dist/components/index.js +43 -39
  21. package/dist/components/navigation/MadCoreSubHeader.js +6 -6
  22. package/dist/components/navigation/index.js +7 -7
  23. package/dist/components/navigation/navigation-creators.d.ts +3 -3
  24. package/dist/components/navigation/navigation-creators.js +7 -7
  25. package/dist/components/screens/AboutScreen.js +2 -2
  26. package/dist/components/screens/LoginScreen.js +5 -3
  27. package/dist/components/screens/create-incident/CreateIncidentScreen.js +39 -35
  28. package/dist/components/screens/create-incident/createIncident.js +39 -35
  29. package/dist/components/screens/language/SelectLanguageScreen.js +4 -4
  30. package/dist/components/screens/release-notes/ReleaseNotesScreen.js +3 -3
  31. package/dist/components/screens/release-notes/WhatsNewScreen.js +7 -7
  32. package/dist/components/screens/settings/Section.js +1 -1
  33. package/dist/components/screens/settings/SettingsScreen.js +6 -6
  34. package/dist/components/screens/settings/index.js +7 -7
  35. package/dist/components/screens/settings/useSignOut.js +4 -4
  36. package/dist/components/service-message/ServiceMessageBanner.js +2 -2
  37. package/dist/hooks/index.js +2 -2
  38. package/dist/hooks/useNavigateFromLanguageSelectScreen.js +2 -2
  39. package/dist/hooks/useNavigateFromLoginScreen.js +2 -2
  40. package/dist/hooks/useNavigateFromWhatsNewScreen.js +2 -2
  41. package/dist/hooks/useScreenTitleFromDictionary.js +2 -2
  42. package/dist/index.d.ts +1 -0
  43. package/dist/index.js +51 -44
  44. package/dist/store/auth-session/auth-session.d.ts +4 -0
  45. package/dist/store/auth-session/auth-session.js +13 -0
  46. package/dist/store/auth-session/index.d.ts +1 -0
  47. package/dist/store/auth-session/index.js +14 -0
  48. package/dist/store/auth-session/resetCancelledSession.d.ts +1 -0
  49. package/dist/store/auth-session/resetCancelledSession.js +10 -0
  50. package/dist/utils/MadCoreProviders.js +1 -1
  51. package/dist/utils/createMadCoreNavigator.d.ts +1062 -2
  52. package/dist/utils/createMadCoreNavigator.js +39 -35
  53. package/package.json +5 -2
  54. package/dist/{chunk-3DTLRMAR.js → chunk-6QNZQ6OY.js} +3 -3
  55. package/dist/{chunk-INA5ANZO.js → chunk-75UZ4BR5.js} +4 -4
  56. package/dist/{chunk-X33ICKCC.js → chunk-C7NJODNT.js} +3 -3
  57. package/dist/{chunk-4KSJR7E5.js → chunk-HPDK6AZ3.js} +3 -3
  58. package/dist/{chunk-HADLUP7M.js → chunk-JADYNBGN.js} +3 -3
  59. package/dist/{chunk-27KFGUGY.js → chunk-KB3M7X3Q.js} +3 -3
  60. package/dist/{chunk-4TVVFWGM.js → chunk-PMQPVI37.js} +3 -3
@@ -1,8 +1,1068 @@
1
1
  import React from "react";
2
2
  import { createNativeStackNavigator, createStackNavigator } from "../components";
3
- export declare const createMadCoreNativeStackNavigator: (Stack: ReturnType<typeof createNativeStackNavigator>) => (props: Omit<unknown, "initialRouteName"> & {
3
+ import { CoreStackParamListBase } from "../types";
4
+ export declare const createMadCoreNativeStackNavigator: <T extends CoreStackParamListBase>(Stack: ReturnType<typeof createNativeStackNavigator<T & CoreStackParamListBase>>) => (props: Omit<Omit<any, "children" | "id" | "initialRouteName" | "layout" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router" | "UNSTABLE_routeNamesChangeBehavior"> & (import("@react-navigation/routers").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/routers").NavigationRoute<import("@react-navigation/routers").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/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
21
+ type: string;
22
+ stale: false;
23
+ }> & {
24
+ type: "stack";
25
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
26
+ };
27
+ navigation: import("@react-navigation/core").NavigationHelpers<T & CoreStackParamListBase, {}>;
28
+ descriptors: Record<string, import("@react-navigation/core").Descriptor<import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/core").NavigationProp<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T, string | undefined, Readonly<{
29
+ key: string;
30
+ index: number;
31
+ routeNames: string[];
32
+ history?: unknown[];
33
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
34
+ type: string;
35
+ stale: false;
36
+ }> & Readonly<{
37
+ key: string;
38
+ index: number;
39
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
40
+ history?: unknown[];
41
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
42
+ type: string;
43
+ stale: false;
44
+ }> & {
45
+ type: "stack";
46
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
47
+ }, import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/native-stack").NativeStackNavigationEventMap>, import("@react-navigation/core").RouteProp<T & CoreStackParamListBase, keyof CoreStackParamListBase | Extract<keyof T, string>>>>;
48
+ children: React.ReactNode;
49
+ }) => React.ReactElement) | undefined;
50
+ screenListeners?: Partial<{
51
+ transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
52
+ key: string;
53
+ index: number;
54
+ routeNames: string[];
55
+ history?: unknown[];
56
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
57
+ type: string;
58
+ stale: false;
59
+ }> & Readonly<{
60
+ key: string;
61
+ index: number;
62
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
63
+ history?: unknown[];
64
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
65
+ type: string;
66
+ stale: false;
67
+ }> & {
68
+ type: "stack";
69
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
70
+ }>, "transitionStart", unknown>;
71
+ transitionEnd: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
72
+ key: string;
73
+ index: number;
74
+ routeNames: string[];
75
+ history?: unknown[];
76
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
77
+ type: string;
78
+ stale: false;
79
+ }> & Readonly<{
80
+ key: string;
81
+ index: number;
82
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
83
+ history?: unknown[];
84
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
85
+ type: string;
86
+ stale: false;
87
+ }> & {
88
+ type: "stack";
89
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
90
+ }>, "transitionEnd", unknown>;
91
+ gestureCancel: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
92
+ key: string;
93
+ index: number;
94
+ routeNames: string[];
95
+ history?: unknown[];
96
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
97
+ type: string;
98
+ stale: false;
99
+ }> & Readonly<{
100
+ key: string;
101
+ index: number;
102
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
103
+ history?: unknown[];
104
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
105
+ type: string;
106
+ stale: false;
107
+ }> & {
108
+ type: "stack";
109
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
110
+ }>, "gestureCancel", unknown>;
111
+ sheetDetentChange: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
112
+ key: string;
113
+ index: number;
114
+ routeNames: string[];
115
+ history?: unknown[];
116
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
117
+ type: string;
118
+ stale: false;
119
+ }> & Readonly<{
120
+ key: string;
121
+ index: number;
122
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
123
+ history?: unknown[];
124
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
125
+ type: string;
126
+ stale: false;
127
+ }> & {
128
+ type: "stack";
129
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
130
+ }>, "sheetDetentChange", unknown>;
131
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
132
+ key: string;
133
+ index: number;
134
+ routeNames: string[];
135
+ history?: unknown[];
136
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
137
+ type: string;
138
+ stale: false;
139
+ }> & Readonly<{
140
+ key: string;
141
+ index: number;
142
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
143
+ history?: unknown[];
144
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
145
+ type: string;
146
+ stale: false;
147
+ }> & {
148
+ type: "stack";
149
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
150
+ }>, "focus", unknown>;
151
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
152
+ key: string;
153
+ index: number;
154
+ routeNames: string[];
155
+ history?: unknown[];
156
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
157
+ type: string;
158
+ stale: false;
159
+ }> & Readonly<{
160
+ key: string;
161
+ index: number;
162
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
163
+ history?: unknown[];
164
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
165
+ type: string;
166
+ stale: false;
167
+ }> & {
168
+ type: "stack";
169
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
170
+ }>, "blur", unknown>;
171
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
172
+ key: string;
173
+ index: number;
174
+ routeNames: string[];
175
+ history?: unknown[];
176
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
177
+ type: string;
178
+ stale: false;
179
+ }> & Readonly<{
180
+ key: string;
181
+ index: number;
182
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
183
+ history?: unknown[];
184
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
185
+ type: string;
186
+ stale: false;
187
+ }> & {
188
+ type: "stack";
189
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
190
+ }>, "state", unknown>;
191
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
192
+ key: string;
193
+ index: number;
194
+ routeNames: string[];
195
+ history?: unknown[];
196
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
197
+ type: string;
198
+ stale: false;
199
+ }> & Readonly<{
200
+ key: string;
201
+ index: number;
202
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
203
+ history?: unknown[];
204
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
205
+ type: string;
206
+ stale: false;
207
+ }> & {
208
+ type: "stack";
209
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
210
+ }>, "beforeRemove", true>;
211
+ }> | ((props: {
212
+ route: import("@react-navigation/core").RouteProp<T & CoreStackParamListBase, keyof CoreStackParamListBase | Extract<keyof T, string>>;
213
+ navigation: (import("@react-navigation/core").NavigationListBase<import("@react-navigation/routers").ParamListBase> & import("@react-navigation/core").NavigationListBase<T & CoreStackParamListBase>)[keyof CoreStackParamListBase | keyof T];
214
+ }) => Partial<{
215
+ transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
216
+ key: string;
217
+ index: number;
218
+ routeNames: string[];
219
+ history?: unknown[];
220
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
221
+ type: string;
222
+ stale: false;
223
+ }> & Readonly<{
224
+ key: string;
225
+ index: number;
226
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
227
+ history?: unknown[];
228
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
229
+ type: string;
230
+ stale: false;
231
+ }> & {
232
+ type: "stack";
233
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
234
+ }>, "transitionStart", unknown>;
235
+ transitionEnd: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
236
+ key: string;
237
+ index: number;
238
+ routeNames: string[];
239
+ history?: unknown[];
240
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
241
+ type: string;
242
+ stale: false;
243
+ }> & Readonly<{
244
+ key: string;
245
+ index: number;
246
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
247
+ history?: unknown[];
248
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
249
+ type: string;
250
+ stale: false;
251
+ }> & {
252
+ type: "stack";
253
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
254
+ }>, "transitionEnd", unknown>;
255
+ gestureCancel: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
256
+ key: string;
257
+ index: number;
258
+ routeNames: string[];
259
+ history?: unknown[];
260
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
261
+ type: string;
262
+ stale: false;
263
+ }> & Readonly<{
264
+ key: string;
265
+ index: number;
266
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
267
+ history?: unknown[];
268
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
269
+ type: string;
270
+ stale: false;
271
+ }> & {
272
+ type: "stack";
273
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
274
+ }>, "gestureCancel", unknown>;
275
+ sheetDetentChange: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
276
+ key: string;
277
+ index: number;
278
+ routeNames: string[];
279
+ history?: unknown[];
280
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
281
+ type: string;
282
+ stale: false;
283
+ }> & Readonly<{
284
+ key: string;
285
+ index: number;
286
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
287
+ history?: unknown[];
288
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
289
+ type: string;
290
+ stale: false;
291
+ }> & {
292
+ type: "stack";
293
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
294
+ }>, "sheetDetentChange", unknown>;
295
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
296
+ key: string;
297
+ index: number;
298
+ routeNames: string[];
299
+ history?: unknown[];
300
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
301
+ type: string;
302
+ stale: false;
303
+ }> & Readonly<{
304
+ key: string;
305
+ index: number;
306
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
307
+ history?: unknown[];
308
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
309
+ type: string;
310
+ stale: false;
311
+ }> & {
312
+ type: "stack";
313
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
314
+ }>, "focus", unknown>;
315
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
316
+ key: string;
317
+ index: number;
318
+ routeNames: string[];
319
+ history?: unknown[];
320
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
321
+ type: string;
322
+ stale: false;
323
+ }> & Readonly<{
324
+ key: string;
325
+ index: number;
326
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
327
+ history?: unknown[];
328
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
329
+ type: string;
330
+ stale: false;
331
+ }> & {
332
+ type: "stack";
333
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
334
+ }>, "blur", unknown>;
335
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
336
+ key: string;
337
+ index: number;
338
+ routeNames: string[];
339
+ history?: unknown[];
340
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
341
+ type: string;
342
+ stale: false;
343
+ }> & Readonly<{
344
+ key: string;
345
+ index: number;
346
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
347
+ history?: unknown[];
348
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
349
+ type: string;
350
+ stale: false;
351
+ }> & {
352
+ type: "stack";
353
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
354
+ }>, "state", unknown>;
355
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/native-stack").NativeStackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
356
+ key: string;
357
+ index: number;
358
+ routeNames: string[];
359
+ history?: unknown[];
360
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
361
+ type: string;
362
+ stale: false;
363
+ }> & Readonly<{
364
+ key: string;
365
+ index: number;
366
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
367
+ history?: unknown[];
368
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
369
+ type: string;
370
+ stale: false;
371
+ }> & {
372
+ type: "stack";
373
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
374
+ }>, "beforeRemove", true>;
375
+ }>) | undefined;
376
+ screenOptions?: (import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions) | ((props: {
377
+ route: import("@react-navigation/core").RouteProp<T & CoreStackParamListBase, keyof CoreStackParamListBase | Extract<keyof T, string>>;
378
+ navigation: (import("@react-navigation/core").NavigationListBase<import("@react-navigation/routers").ParamListBase> & import("@react-navigation/core").NavigationListBase<T & CoreStackParamListBase>)[keyof CoreStackParamListBase | keyof T];
379
+ theme: ReactNavigation.Theme;
380
+ }) => import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions) | undefined;
381
+ screenLayout?: ((props: import("@react-navigation/core").ScreenLayoutArgs<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T, import("@react-navigation/native-stack").NativeStackNavigationOptions & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, (import("@react-navigation/core").NavigationListBase<import("@react-navigation/routers").ParamListBase> & import("@react-navigation/core").NavigationListBase<T & CoreStackParamListBase>)[keyof CoreStackParamListBase | keyof T]>) => React.ReactElement) | undefined;
382
+ UNSTABLE_router?: (<Action extends Readonly<{
383
+ type: string;
384
+ payload?: object;
385
+ source?: string;
386
+ target?: string;
387
+ }>>(original: import("@react-navigation/routers").Router<Readonly<{
388
+ key: string;
389
+ index: number;
390
+ routeNames: string[];
391
+ history?: unknown[];
392
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
393
+ type: string;
394
+ stale: false;
395
+ }> & Readonly<{
396
+ key: string;
397
+ index: number;
398
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
399
+ history?: unknown[];
400
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
401
+ type: string;
402
+ stale: false;
403
+ }> & {
404
+ type: "stack";
405
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
406
+ }, Action>) => Partial<import("@react-navigation/routers").Router<Readonly<{
407
+ key: string;
408
+ index: number;
409
+ routeNames: string[];
410
+ history?: unknown[];
411
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
412
+ type: string;
413
+ stale: false;
414
+ }> & Readonly<{
415
+ key: string;
416
+ index: number;
417
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
418
+ history?: unknown[];
419
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
420
+ type: string;
421
+ stale: false;
422
+ }> & {
423
+ type: "stack";
424
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
425
+ }, Action>>) | undefined;
426
+ UNSTABLE_routeNamesChangeBehavior?: "firstMatch" | "lastUnhandled";
427
+ } & ({
428
+ id?: undefined;
429
+ } | {
430
+ id: string;
431
+ }))), "initialRouteName"> & {
4
432
  children?: React.ReactNode;
5
433
  }) => React.JSX.Element | null;
6
- export declare const createMadCoreStackNavigator: (Stack: ReturnType<typeof createStackNavigator>) => (props: Omit<unknown, "initialRouteName"> & {
434
+ export declare const createMadCoreStackNavigator: <T extends CoreStackParamListBase>(Stack: ReturnType<typeof createStackNavigator<T & CoreStackParamListBase>>) => (props: Omit<Omit<any, "children" | "id" | "initialRouteName" | "layout" | "screenListeners" | "screenOptions" | "screenLayout" | "UNSTABLE_router" | "UNSTABLE_routeNamesChangeBehavior"> & (import("@react-navigation/routers").DefaultRouterOptions<keyof CoreStackParamListBase | Extract<keyof T, string>> & ({
435
+ children: React.ReactNode;
436
+ layout?: ((props: {
437
+ state: Readonly<{
438
+ key: string;
439
+ index: number;
440
+ routeNames: string[];
441
+ history?: unknown[];
442
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
443
+ type: string;
444
+ stale: false;
445
+ }> & Readonly<{
446
+ key: string;
447
+ index: number;
448
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
449
+ history?: unknown[];
450
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
451
+ type: string;
452
+ stale: false;
453
+ }> & {
454
+ type: "stack";
455
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
456
+ };
457
+ navigation: import("@react-navigation/core").NavigationHelpers<T & CoreStackParamListBase, {}>;
458
+ descriptors: Record<string, import("@react-navigation/core").Descriptor<Omit<import("@react-navigation/elements").HeaderOptions, "headerLeft" | "headerTitle" | "headerRight"> & {
459
+ headerTitle?: string | ((props: import("@react-navigation/elements").HeaderTitleProps) => React.ReactNode);
460
+ headerLeft?: (props: import("@react-navigation/stack").StackHeaderLeftProps) => React.ReactNode;
461
+ headerRight?: (props: import("@react-navigation/stack").StackHeaderRightProps) => React.ReactNode;
462
+ headerBackAllowFontScaling?: boolean;
463
+ headerBackAccessibilityLabel?: string;
464
+ headerBackTestID?: string;
465
+ headerBackTitle?: string;
466
+ headerBackTruncatedTitle?: string;
467
+ headerBackButtonDisplayMode?: import("@react-navigation/elements").HeaderBackButtonDisplayMode;
468
+ headerBackTitleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
469
+ headerBackImage?: React.ComponentProps<typeof import("@react-navigation/elements").HeaderBackButton>["backImage"];
470
+ } & Partial<import("@react-navigation/stack").TransitionPreset> & {
471
+ title?: string;
472
+ header?: (props: import("@react-navigation/stack").StackHeaderProps) => React.ReactNode;
473
+ headerMode?: import("@react-navigation/stack/lib/typescript/src/types").StackHeaderMode;
474
+ headerShown?: boolean;
475
+ cardShadowEnabled?: boolean;
476
+ cardOverlayEnabled?: boolean;
477
+ cardOverlay?: (props: {
478
+ style: import("react-native").Animated.WithAnimatedValue<import("react-native").StyleProp<import("react-native").ViewStyle>>;
479
+ }) => React.ReactNode;
480
+ cardStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
481
+ presentation?: "card" | "modal" | "transparentModal";
482
+ animation?: import("@react-navigation/stack").StackAnimationName;
483
+ animationTypeForReplace?: "push" | "pop";
484
+ gestureEnabled?: boolean;
485
+ gestureResponseDistance?: number;
486
+ gestureVelocityImpact?: number;
487
+ detachPreviousScreen?: boolean;
488
+ keyboardHandlingEnabled?: boolean;
489
+ freezeOnBlur?: boolean;
490
+ autoHideHomeIndicator?: boolean;
491
+ } & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/core").NavigationProp<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T, string | undefined, Readonly<{
492
+ key: string;
493
+ index: number;
494
+ routeNames: string[];
495
+ history?: unknown[];
496
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
497
+ type: string;
498
+ stale: false;
499
+ }> & Readonly<{
500
+ key: string;
501
+ index: number;
502
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
503
+ history?: unknown[];
504
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
505
+ type: string;
506
+ stale: false;
507
+ }> & {
508
+ type: "stack";
509
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
510
+ }, Omit<import("@react-navigation/elements").HeaderOptions, "headerLeft" | "headerTitle" | "headerRight"> & {
511
+ headerTitle?: string | ((props: import("@react-navigation/elements").HeaderTitleProps) => React.ReactNode);
512
+ headerLeft?: (props: import("@react-navigation/stack").StackHeaderLeftProps) => React.ReactNode;
513
+ headerRight?: (props: import("@react-navigation/stack").StackHeaderRightProps) => React.ReactNode;
514
+ headerBackAllowFontScaling?: boolean;
515
+ headerBackAccessibilityLabel?: string;
516
+ headerBackTestID?: string;
517
+ headerBackTitle?: string;
518
+ headerBackTruncatedTitle?: string;
519
+ headerBackButtonDisplayMode?: import("@react-navigation/elements").HeaderBackButtonDisplayMode;
520
+ headerBackTitleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
521
+ headerBackImage?: React.ComponentProps<typeof import("@react-navigation/elements").HeaderBackButton>["backImage"];
522
+ } & Partial<import("@react-navigation/stack").TransitionPreset> & {
523
+ title?: string;
524
+ header?: (props: import("@react-navigation/stack").StackHeaderProps) => React.ReactNode;
525
+ headerMode?: import("@react-navigation/stack/lib/typescript/src/types").StackHeaderMode;
526
+ headerShown?: boolean;
527
+ cardShadowEnabled?: boolean;
528
+ cardOverlayEnabled?: boolean;
529
+ cardOverlay?: (props: {
530
+ style: import("react-native").Animated.WithAnimatedValue<import("react-native").StyleProp<import("react-native").ViewStyle>>;
531
+ }) => React.ReactNode;
532
+ cardStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
533
+ presentation?: "card" | "modal" | "transparentModal";
534
+ animation?: import("@react-navigation/stack").StackAnimationName;
535
+ animationTypeForReplace?: "push" | "pop";
536
+ gestureEnabled?: boolean;
537
+ gestureResponseDistance?: number;
538
+ gestureVelocityImpact?: number;
539
+ detachPreviousScreen?: boolean;
540
+ keyboardHandlingEnabled?: boolean;
541
+ freezeOnBlur?: boolean;
542
+ autoHideHomeIndicator?: boolean;
543
+ } & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, import("@react-navigation/stack").StackNavigationEventMap>, import("@react-navigation/core").RouteProp<T & CoreStackParamListBase, keyof CoreStackParamListBase | Extract<keyof T, string>>>>;
544
+ children: React.ReactNode;
545
+ }) => React.ReactElement) | undefined;
546
+ screenListeners?: Partial<{
547
+ transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
548
+ key: string;
549
+ index: number;
550
+ routeNames: string[];
551
+ history?: unknown[];
552
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
553
+ type: string;
554
+ stale: false;
555
+ }> & Readonly<{
556
+ key: string;
557
+ index: number;
558
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
559
+ history?: unknown[];
560
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
561
+ type: string;
562
+ stale: false;
563
+ }> & {
564
+ type: "stack";
565
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
566
+ }>, "transitionStart", unknown>;
567
+ transitionEnd: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
568
+ key: string;
569
+ index: number;
570
+ routeNames: string[];
571
+ history?: unknown[];
572
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
573
+ type: string;
574
+ stale: false;
575
+ }> & Readonly<{
576
+ key: string;
577
+ index: number;
578
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
579
+ history?: unknown[];
580
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
581
+ type: string;
582
+ stale: false;
583
+ }> & {
584
+ type: "stack";
585
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
586
+ }>, "transitionEnd", unknown>;
587
+ gestureStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
588
+ key: string;
589
+ index: number;
590
+ routeNames: string[];
591
+ history?: unknown[];
592
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
593
+ type: string;
594
+ stale: false;
595
+ }> & Readonly<{
596
+ key: string;
597
+ index: number;
598
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
599
+ history?: unknown[];
600
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
601
+ type: string;
602
+ stale: false;
603
+ }> & {
604
+ type: "stack";
605
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
606
+ }>, "gestureStart", unknown>;
607
+ gestureEnd: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
608
+ key: string;
609
+ index: number;
610
+ routeNames: string[];
611
+ history?: unknown[];
612
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
613
+ type: string;
614
+ stale: false;
615
+ }> & Readonly<{
616
+ key: string;
617
+ index: number;
618
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
619
+ history?: unknown[];
620
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
621
+ type: string;
622
+ stale: false;
623
+ }> & {
624
+ type: "stack";
625
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
626
+ }>, "gestureEnd", unknown>;
627
+ gestureCancel: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
628
+ key: string;
629
+ index: number;
630
+ routeNames: string[];
631
+ history?: unknown[];
632
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
633
+ type: string;
634
+ stale: false;
635
+ }> & Readonly<{
636
+ key: string;
637
+ index: number;
638
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
639
+ history?: unknown[];
640
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
641
+ type: string;
642
+ stale: false;
643
+ }> & {
644
+ type: "stack";
645
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
646
+ }>, "gestureCancel", unknown>;
647
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
648
+ key: string;
649
+ index: number;
650
+ routeNames: string[];
651
+ history?: unknown[];
652
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
653
+ type: string;
654
+ stale: false;
655
+ }> & Readonly<{
656
+ key: string;
657
+ index: number;
658
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
659
+ history?: unknown[];
660
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
661
+ type: string;
662
+ stale: false;
663
+ }> & {
664
+ type: "stack";
665
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
666
+ }>, "focus", unknown>;
667
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
668
+ key: string;
669
+ index: number;
670
+ routeNames: string[];
671
+ history?: unknown[];
672
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
673
+ type: string;
674
+ stale: false;
675
+ }> & Readonly<{
676
+ key: string;
677
+ index: number;
678
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
679
+ history?: unknown[];
680
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
681
+ type: string;
682
+ stale: false;
683
+ }> & {
684
+ type: "stack";
685
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
686
+ }>, "blur", unknown>;
687
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
688
+ key: string;
689
+ index: number;
690
+ routeNames: string[];
691
+ history?: unknown[];
692
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
693
+ type: string;
694
+ stale: false;
695
+ }> & Readonly<{
696
+ key: string;
697
+ index: number;
698
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
699
+ history?: unknown[];
700
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
701
+ type: string;
702
+ stale: false;
703
+ }> & {
704
+ type: "stack";
705
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
706
+ }>, "state", unknown>;
707
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
708
+ key: string;
709
+ index: number;
710
+ routeNames: string[];
711
+ history?: unknown[];
712
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
713
+ type: string;
714
+ stale: false;
715
+ }> & Readonly<{
716
+ key: string;
717
+ index: number;
718
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
719
+ history?: unknown[];
720
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
721
+ type: string;
722
+ stale: false;
723
+ }> & {
724
+ type: "stack";
725
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
726
+ }>, "beforeRemove", true>;
727
+ }> | ((props: {
728
+ route: import("@react-navigation/core").RouteProp<T & CoreStackParamListBase, keyof CoreStackParamListBase | Extract<keyof T, string>>;
729
+ navigation: (import("@react-navigation/core").NavigationListBase<import("@react-navigation/routers").ParamListBase> & import("@react-navigation/core").NavigationListBase<T & CoreStackParamListBase>)[keyof CoreStackParamListBase | keyof T];
730
+ }) => Partial<{
731
+ transitionStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
732
+ key: string;
733
+ index: number;
734
+ routeNames: string[];
735
+ history?: unknown[];
736
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").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/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
745
+ type: string;
746
+ stale: false;
747
+ }> & {
748
+ type: "stack";
749
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
750
+ }>, "transitionStart", unknown>;
751
+ transitionEnd: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
752
+ key: string;
753
+ index: number;
754
+ routeNames: string[];
755
+ history?: unknown[];
756
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
757
+ type: string;
758
+ stale: false;
759
+ }> & Readonly<{
760
+ key: string;
761
+ index: number;
762
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
763
+ history?: unknown[];
764
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
765
+ type: string;
766
+ stale: false;
767
+ }> & {
768
+ type: "stack";
769
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
770
+ }>, "transitionEnd", unknown>;
771
+ gestureStart: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
772
+ key: string;
773
+ index: number;
774
+ routeNames: string[];
775
+ history?: unknown[];
776
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
777
+ type: string;
778
+ stale: false;
779
+ }> & Readonly<{
780
+ key: string;
781
+ index: number;
782
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
783
+ history?: unknown[];
784
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
785
+ type: string;
786
+ stale: false;
787
+ }> & {
788
+ type: "stack";
789
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
790
+ }>, "gestureStart", unknown>;
791
+ gestureEnd: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
792
+ key: string;
793
+ index: number;
794
+ routeNames: string[];
795
+ history?: unknown[];
796
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
797
+ type: string;
798
+ stale: false;
799
+ }> & Readonly<{
800
+ key: string;
801
+ index: number;
802
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
803
+ history?: unknown[];
804
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
805
+ type: string;
806
+ stale: false;
807
+ }> & {
808
+ type: "stack";
809
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
810
+ }>, "gestureEnd", unknown>;
811
+ gestureCancel: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
812
+ key: string;
813
+ index: number;
814
+ routeNames: string[];
815
+ history?: unknown[];
816
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
817
+ type: string;
818
+ stale: false;
819
+ }> & Readonly<{
820
+ key: string;
821
+ index: number;
822
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
823
+ history?: unknown[];
824
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
825
+ type: string;
826
+ stale: false;
827
+ }> & {
828
+ type: "stack";
829
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
830
+ }>, "gestureCancel", unknown>;
831
+ focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
832
+ key: string;
833
+ index: number;
834
+ routeNames: string[];
835
+ history?: unknown[];
836
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
837
+ type: string;
838
+ stale: false;
839
+ }> & Readonly<{
840
+ key: string;
841
+ index: number;
842
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
843
+ history?: unknown[];
844
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
845
+ type: string;
846
+ stale: false;
847
+ }> & {
848
+ type: "stack";
849
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
850
+ }>, "focus", unknown>;
851
+ blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
852
+ key: string;
853
+ index: number;
854
+ routeNames: string[];
855
+ history?: unknown[];
856
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
857
+ type: string;
858
+ stale: false;
859
+ }> & Readonly<{
860
+ key: string;
861
+ index: number;
862
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
863
+ history?: unknown[];
864
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
865
+ type: string;
866
+ stale: false;
867
+ }> & {
868
+ type: "stack";
869
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
870
+ }>, "blur", unknown>;
871
+ state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
872
+ key: string;
873
+ index: number;
874
+ routeNames: string[];
875
+ history?: unknown[];
876
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
877
+ type: string;
878
+ stale: false;
879
+ }> & Readonly<{
880
+ key: string;
881
+ index: number;
882
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
883
+ history?: unknown[];
884
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
885
+ type: string;
886
+ stale: false;
887
+ }> & {
888
+ type: "stack";
889
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
890
+ }>, "state", unknown>;
891
+ beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/stack").StackNavigationEventMap & import("@react-navigation/core").EventMapCore<Readonly<{
892
+ key: string;
893
+ index: number;
894
+ routeNames: string[];
895
+ history?: unknown[];
896
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
897
+ type: string;
898
+ stale: false;
899
+ }> & Readonly<{
900
+ key: string;
901
+ index: number;
902
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
903
+ history?: unknown[];
904
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
905
+ type: string;
906
+ stale: false;
907
+ }> & {
908
+ type: "stack";
909
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
910
+ }>, "beforeRemove", true>;
911
+ }>) | undefined;
912
+ screenOptions?: (Omit<import("@react-navigation/elements").HeaderOptions, "headerLeft" | "headerTitle" | "headerRight"> & {
913
+ headerTitle?: string | ((props: import("@react-navigation/elements").HeaderTitleProps) => React.ReactNode);
914
+ headerLeft?: (props: import("@react-navigation/stack").StackHeaderLeftProps) => React.ReactNode;
915
+ headerRight?: (props: import("@react-navigation/stack").StackHeaderRightProps) => React.ReactNode;
916
+ headerBackAllowFontScaling?: boolean;
917
+ headerBackAccessibilityLabel?: string;
918
+ headerBackTestID?: string;
919
+ headerBackTitle?: string;
920
+ headerBackTruncatedTitle?: string;
921
+ headerBackButtonDisplayMode?: import("@react-navigation/elements").HeaderBackButtonDisplayMode;
922
+ headerBackTitleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
923
+ headerBackImage?: React.ComponentProps<typeof import("@react-navigation/elements").HeaderBackButton>["backImage"];
924
+ } & Partial<import("@react-navigation/stack").TransitionPreset> & {
925
+ title?: string;
926
+ header?: (props: import("@react-navigation/stack").StackHeaderProps) => React.ReactNode;
927
+ headerMode?: import("@react-navigation/stack/lib/typescript/src/types").StackHeaderMode;
928
+ headerShown?: boolean;
929
+ cardShadowEnabled?: boolean;
930
+ cardOverlayEnabled?: boolean;
931
+ cardOverlay?: (props: {
932
+ style: import("react-native").Animated.WithAnimatedValue<import("react-native").StyleProp<import("react-native").ViewStyle>>;
933
+ }) => React.ReactNode;
934
+ cardStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
935
+ presentation?: "card" | "modal" | "transparentModal";
936
+ animation?: import("@react-navigation/stack").StackAnimationName;
937
+ animationTypeForReplace?: "push" | "pop";
938
+ gestureEnabled?: boolean;
939
+ gestureResponseDistance?: number;
940
+ gestureVelocityImpact?: number;
941
+ detachPreviousScreen?: boolean;
942
+ keyboardHandlingEnabled?: boolean;
943
+ freezeOnBlur?: boolean;
944
+ autoHideHomeIndicator?: boolean;
945
+ } & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions) | ((props: {
946
+ route: import("@react-navigation/core").RouteProp<T & CoreStackParamListBase, keyof CoreStackParamListBase | Extract<keyof T, string>>;
947
+ navigation: (import("@react-navigation/core").NavigationListBase<import("@react-navigation/routers").ParamListBase> & import("@react-navigation/core").NavigationListBase<T & CoreStackParamListBase>)[keyof CoreStackParamListBase | keyof T];
948
+ theme: ReactNavigation.Theme;
949
+ }) => Omit<import("@react-navigation/elements").HeaderOptions, "headerLeft" | "headerTitle" | "headerRight"> & {
950
+ headerTitle?: string | ((props: import("@react-navigation/elements").HeaderTitleProps) => React.ReactNode);
951
+ headerLeft?: (props: import("@react-navigation/stack").StackHeaderLeftProps) => React.ReactNode;
952
+ headerRight?: (props: import("@react-navigation/stack").StackHeaderRightProps) => React.ReactNode;
953
+ headerBackAllowFontScaling?: boolean;
954
+ headerBackAccessibilityLabel?: string;
955
+ headerBackTestID?: string;
956
+ headerBackTitle?: string;
957
+ headerBackTruncatedTitle?: string;
958
+ headerBackButtonDisplayMode?: import("@react-navigation/elements").HeaderBackButtonDisplayMode;
959
+ headerBackTitleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
960
+ headerBackImage?: React.ComponentProps<typeof import("@react-navigation/elements").HeaderBackButton>["backImage"];
961
+ } & Partial<import("@react-navigation/stack").TransitionPreset> & {
962
+ title?: string;
963
+ header?: (props: import("@react-navigation/stack").StackHeaderProps) => React.ReactNode;
964
+ headerMode?: import("@react-navigation/stack/lib/typescript/src/types").StackHeaderMode;
965
+ headerShown?: boolean;
966
+ cardShadowEnabled?: boolean;
967
+ cardOverlayEnabled?: boolean;
968
+ cardOverlay?: (props: {
969
+ style: import("react-native").Animated.WithAnimatedValue<import("react-native").StyleProp<import("react-native").ViewStyle>>;
970
+ }) => React.ReactNode;
971
+ cardStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
972
+ presentation?: "card" | "modal" | "transparentModal";
973
+ animation?: import("@react-navigation/stack").StackAnimationName;
974
+ animationTypeForReplace?: "push" | "pop";
975
+ gestureEnabled?: boolean;
976
+ gestureResponseDistance?: number;
977
+ gestureVelocityImpact?: number;
978
+ detachPreviousScreen?: boolean;
979
+ keyboardHandlingEnabled?: boolean;
980
+ freezeOnBlur?: boolean;
981
+ autoHideHomeIndicator?: boolean;
982
+ } & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions) | undefined;
983
+ screenLayout?: ((props: import("@react-navigation/core").ScreenLayoutArgs<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T, Omit<import("@react-navigation/elements").HeaderOptions, "headerLeft" | "headerTitle" | "headerRight"> & {
984
+ headerTitle?: string | ((props: import("@react-navigation/elements").HeaderTitleProps) => React.ReactNode);
985
+ headerLeft?: (props: import("@react-navigation/stack").StackHeaderLeftProps) => React.ReactNode;
986
+ headerRight?: (props: import("@react-navigation/stack").StackHeaderRightProps) => React.ReactNode;
987
+ headerBackAllowFontScaling?: boolean;
988
+ headerBackAccessibilityLabel?: string;
989
+ headerBackTestID?: string;
990
+ headerBackTitle?: string;
991
+ headerBackTruncatedTitle?: string;
992
+ headerBackButtonDisplayMode?: import("@react-navigation/elements").HeaderBackButtonDisplayMode;
993
+ headerBackTitleStyle?: import("react-native").StyleProp<import("react-native").TextStyle>;
994
+ headerBackImage?: React.ComponentProps<typeof import("@react-navigation/elements").HeaderBackButton>["backImage"];
995
+ } & Partial<import("@react-navigation/stack").TransitionPreset> & {
996
+ title?: string;
997
+ header?: (props: import("@react-navigation/stack").StackHeaderProps) => React.ReactNode;
998
+ headerMode?: import("@react-navigation/stack/lib/typescript/src/types").StackHeaderMode;
999
+ headerShown?: boolean;
1000
+ cardShadowEnabled?: boolean;
1001
+ cardOverlayEnabled?: boolean;
1002
+ cardOverlay?: (props: {
1003
+ style: import("react-native").Animated.WithAnimatedValue<import("react-native").StyleProp<import("react-native").ViewStyle>>;
1004
+ }) => React.ReactNode;
1005
+ cardStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
1006
+ presentation?: "card" | "modal" | "transparentModal";
1007
+ animation?: import("@react-navigation/stack").StackAnimationName;
1008
+ animationTypeForReplace?: "push" | "pop";
1009
+ gestureEnabled?: boolean;
1010
+ gestureResponseDistance?: number;
1011
+ gestureVelocityImpact?: number;
1012
+ detachPreviousScreen?: boolean;
1013
+ keyboardHandlingEnabled?: boolean;
1014
+ freezeOnBlur?: boolean;
1015
+ autoHideHomeIndicator?: boolean;
1016
+ } & import("@equinor/mad-navigation/dist/_internal/types").MadNavigationOptions, (import("@react-navigation/core").NavigationListBase<import("@react-navigation/routers").ParamListBase> & import("@react-navigation/core").NavigationListBase<T & CoreStackParamListBase>)[keyof CoreStackParamListBase | keyof T]>) => React.ReactElement) | undefined;
1017
+ UNSTABLE_router?: (<Action extends Readonly<{
1018
+ type: string;
1019
+ payload?: object;
1020
+ source?: string;
1021
+ target?: string;
1022
+ }>>(original: import("@react-navigation/routers").Router<Readonly<{
1023
+ key: string;
1024
+ index: number;
1025
+ routeNames: string[];
1026
+ history?: unknown[];
1027
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
1028
+ type: string;
1029
+ stale: false;
1030
+ }> & Readonly<{
1031
+ key: string;
1032
+ index: number;
1033
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1034
+ history?: unknown[];
1035
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
1036
+ type: string;
1037
+ stale: false;
1038
+ }> & {
1039
+ type: "stack";
1040
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
1041
+ }, Action>) => Partial<import("@react-navigation/routers").Router<Readonly<{
1042
+ key: string;
1043
+ index: number;
1044
+ routeNames: string[];
1045
+ history?: unknown[];
1046
+ routes: import("@react-navigation/routers").NavigationRoute<import("@react-navigation/routers").ParamListBase, string>[];
1047
+ type: string;
1048
+ stale: false;
1049
+ }> & Readonly<{
1050
+ key: string;
1051
+ index: number;
1052
+ routeNames: (keyof CoreStackParamListBase | Extract<keyof T, string>)[];
1053
+ history?: unknown[];
1054
+ routes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
1055
+ type: string;
1056
+ stale: false;
1057
+ }> & {
1058
+ type: "stack";
1059
+ preloadedRoutes: import("@react-navigation/routers").NavigationRoute<T & CoreStackParamListBase, keyof CoreStackParamListBase | keyof T>[];
1060
+ }, Action>>) | undefined;
1061
+ UNSTABLE_routeNamesChangeBehavior?: "firstMatch" | "lastUnhandled";
1062
+ } & ({
1063
+ id?: undefined;
1064
+ } | {
1065
+ id: string;
1066
+ }))), "initialRouteName"> & {
7
1067
  children?: React.ReactNode;
8
1068
  }) => React.JSX.Element | null;