UNPKG

994 BTypeScriptView Raw
1import { CommonActions, type ParamListBase } from '@react-navigation/core';
2/**
3 * Helpers to build href or action based on the linking options.
4 * @returns `buildHref` to build an `href` for screen and `buildAction` to build an action from an `href`.
5 */
6export declare function useLinkBuilder(): {
7 buildHref: (name: string, params?: object) => string | undefined;
8 buildAction: (href: string) => {
9 type: "NAVIGATE";
10 payload: {
11 name: string;
12 params?: import("@react-navigation/core").NavigatorScreenParams<Readonly<{
13 key: string;
14 index: number;
15 routeNames: string[];
16 history?: unknown[];
17 routes: import("@react-navigation/routers").NavigationRoute<ParamListBase, string>[];
18 type: string;
19 stale: false;
20 }>>;
21 path?: string;
22 };
23 } | CommonActions.Action;
24};
25//# sourceMappingURL=useLinkBuilder.d.ts.map
\No newline at end of file