1 | import * as React from 'react';
|
2 | import { NavigationContainerRef } from '@react-navigation/core';
|
3 | import type { LinkingOptions } from './types';
|
4 | export default function useLinking(ref: React.RefObject<NavigationContainerRef>, { enabled, prefixes, config, getInitialURL, subscribe, getStateFromPath, getActionFromState, }: LinkingOptions): {
|
5 | getInitialState: () => PromiseLike<(Partial<Pick<Readonly<{
|
6 | key: string;
|
7 | index: number;
|
8 | routeNames: string[];
|
9 | history?: unknown[] | undefined;
|
10 | routes: (Readonly<{
|
11 | key: string;
|
12 | name: string;
|
13 | }> & Readonly<{
|
14 | params?: object | undefined;
|
15 | }> & {
|
16 | state?: Readonly<any> | import("@react-navigation/core").PartialState<Readonly<any>> | undefined;
|
17 | })[];
|
18 | type: string;
|
19 | stale: false;
|
20 | }>, "key" | "index" | "routeNames" | "history" | "type">> & Readonly<{
|
21 | stale?: true | undefined;
|
22 | routes: import("@react-navigation/core").PartialRoute<import("@react-navigation/core").Route<string, object | undefined>>[];
|
23 | }> & {
|
24 | state?: (Partial<Pick<Readonly<{
|
25 | key: string;
|
26 | index: number;
|
27 | routeNames: string[];
|
28 | history?: unknown[] | undefined;
|
29 | routes: (Readonly<{
|
30 | key: string;
|
31 | name: string;
|
32 | }> & Readonly<{
|
33 | params?: object | undefined;
|
34 | }> & {
|
35 | state?: Readonly<any> | import("@react-navigation/core").PartialState<Readonly<any>> | undefined;
|
36 | })[];
|
37 | type: string;
|
38 | stale: false;
|
39 | }>, "key" | "index" | "routeNames" | "history" | "type">> & Readonly<{
|
40 | stale?: true | undefined;
|
41 | routes: import("@react-navigation/core").PartialRoute<import("@react-navigation/core").Route<string, object | undefined>>[];
|
42 | }> & any) | undefined;
|
43 | }) | undefined>;
|
44 | };
|