import React, { type Ref } from "react"; import type { GoConfigWithResource } from "../../hooks/router/use-go"; type LinkPropsWithGo = { go: Omit; }; type LinkPropsWithTo = { to: string; }; export type LinkProps = React.PropsWithChildren<(LinkPropsWithGo | LinkPropsWithTo) & TProps>; /** * @param to The path to navigate to. * @param go The useGo.go params to navigate to. If `to` provided, this will be ignored. * @returns routerProvider.Link if it is provided, otherwise an anchor tag. */ declare const LinkComponent: (props: LinkProps, ref: Ref) => React.JSX.Element; export declare const Link: (props: LinkProps & { ref?: Ref; }) => ReturnType; export {}; //# sourceMappingURL=index.d.ts.map