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