import * as React from 'react'; import { NavigationContainerRef } from '@react-navigation/core'; import type { LinkingOptions } from './types'; export default function useLinking(ref: React.RefObject, { enabled, config, getStateFromPath, getPathFromState, getActionFromState, }: LinkingOptions): { getInitialState: () => PromiseLike<(Partial & Readonly<{ params?: object | undefined; }> & { state?: Readonly | import("@react-navigation/core").PartialState> | undefined; })[]; type: string; stale: false; }>, "key" | "index" | "routeNames" | "history" | "type">> & Readonly<{ stale?: true | undefined; routes: import("@react-navigation/core").PartialRoute>[]; }> & { state?: (Partial & Readonly<{ params?: object | undefined; }> & { state?: Readonly | import("@react-navigation/core").PartialState> | undefined; })[]; type: string; stale: false; }>, "key" | "index" | "routeNames" | "history" | "type">> & Readonly<{ stale?: true | undefined; routes: import("@react-navigation/core").PartialRoute>[]; }> & any) | undefined; }) | undefined>; };