import type { HTMLAttributes } from "astro/types"; import type { AstroComponentFactory } from "astro/runtime/server/index.js"; import type { RouteOptions } from "astro-js-typesafe-routes/path"; type LinkBase = Omit, "href">; type InternalProps = LinkBase & RouteOptions & { external?: false; href?: never; }; type ExternalProps = LinkBase & { external: true; href: string; to?: never; }; export type Props = InternalProps | ExternalProps; declare const Link: AstroComponentFactory; export default Link;