UNPKG

642 BTypeScriptView Raw
1/// <reference types="react" />
2import * as React from 'react';
3import { ReducibleNode } from 'reducible-node';
4import { Navigator } from './navigator';
5export interface NavigationPassedProps<R extends ReducibleNode<any>, TParams = {}> {
6 mutex: string;
7 parent: string | undefined;
8 path: string;
9 openedFrom: string | undefined;
10 params: TParams;
11 state: R['type'];
12 title: string;
13 navigator: Navigator;
14}
15export interface NavigationProps {
16 navigator: Navigator;
17 mutex?: string;
18}
19export declare function Navigation({navigator, mutex}: NavigationProps): React.ReactElement<NavigationPassedProps<any, any>>;