import { ComponentProps } from 'react'; import { RouteOptions } from '../path.ts'; type LinkBase = Omit, "href">; /** Internal links require `to` and optional route params */ type InternalLinkProps = LinkBase & RouteOptions & { external?: false; href?: never; }; /** External links require `href` and explicit `external={true}` */ type ExternalLinkProps = LinkBase & { external: true; href: string; to?: never; }; export type ReactLinkProps = InternalLinkProps | ExternalLinkProps; export default function Link({ external, ...props }: ReactLinkProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=link.d.ts.map