UNPKG

1.59 kBTypeScriptView Raw
1import type { NavigationState, PartialState } from '@react-navigation/routers';
2import * as React from 'react';
3declare const _default: React.Context<{
4 isDefault?: true | undefined;
5 state?: Readonly<{
6 key: string;
7 index: number;
8 routeNames: string[];
9 history?: unknown[] | undefined;
10 routes: (Readonly<{
11 key: string;
12 name: string;
13 path?: string | undefined;
14 }> & Readonly<{
15 params?: Readonly<object | undefined>;
16 }> & {
17 state?: Readonly<any> | PartialState<Readonly<any>> | undefined;
18 })[];
19 type: string;
20 stale: false;
21 }> | PartialState<Readonly<{
22 key: string;
23 index: number;
24 routeNames: string[];
25 history?: unknown[] | undefined;
26 routes: (Readonly<{
27 key: string;
28 name: string;
29 path?: string | undefined;
30 }> & Readonly<{
31 params?: Readonly<object | undefined>;
32 }> & {
33 state?: Readonly<any> | PartialState<Readonly<any>> | undefined;
34 })[];
35 type: string;
36 stale: false;
37 }>> | undefined;
38 getKey: () => string | undefined;
39 setKey: (key: string) => void;
40 getState: () => NavigationState | PartialState<NavigationState> | undefined;
41 setState: (state: NavigationState | PartialState<NavigationState> | undefined) => void;
42 getIsInitial: () => boolean;
43 addOptionsGetter?: ((key: string, getter: () => object | undefined | null) => void) | undefined;
44}>;
45export default _default;
46
\No newline at end of file