import { type NavigationContainerRef, type ParamListBase } from '@react-navigation/core'; import * as React from 'react'; import type { LinkingOptions } from '@react-navigation/native'; /** * Run async function in series as it's called. */ export declare const series: (cb: () => Promise) => () => void; 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/routers").PartialState> | undefined; })[]; type: string; stale: false; }>, "stale" | "routes">> & Readonly<{ stale?: true | undefined; routes: import("@react-navigation/routers").PartialRoute>[]; }> & { state?: (Partial & Readonly<{ params?: Readonly; }> & { state?: Readonly | import("@react-navigation/routers").PartialState> | undefined; })[]; type: string; stale: false; }>, "stale" | "routes">> & Readonly<{ stale?: true | undefined; routes: import("@react-navigation/routers").PartialRoute>[]; }> & any) | undefined; }) | undefined>; }; export {}; //# sourceMappingURL=useLinking.d.ts.map