export declare type Route< /** * Route string path */ R extends string> = { routeName: R; params?: object; }; declare type GenericRoute = { /** * React navigation route or page name for next.js */ routeName: string; /** * (optional) Dictionary that will be accessed via `getParams` in the target screen. */ params?: object; /** * Dictionary that will only be used for web: * * @example * * The following will use the `home` route in react navigation. * * However, it will use the `pages/index.tsx` file for next. Also, it will show up as `domain.com/inbox` in the address bar. * * ```es6 * export default function Button() { * return ( * * Press me * * ) * } * ``` */ web?: { /** * Alternative path to override routeName on web. */ path?: string; /** * A custom URL ending to show in the browser address bar instead of the `web.path` or `routeName`. * * Should start with `/`. */ as?: string; shallow?: boolean; }; }; export declare type NavigateTo = GenericRoute; export declare type Params

= { params: P; }; export declare type WebRoute = { web: { path?: Path; as?: As; }; }; export declare type NavigateFunction = (route: NavigateTo) => void; export declare type PushFunction = (route: NavigateTo) => void; export declare type GetParam = (param: string) => Param; export declare type ReturnNav = { navigate: NavigateFunction; push: PushFunction; getParam: GetParam; }; export {};