import type { LinkProps as OriginalLinkProps } from "next/dist/client/link.js"; import { AnchorHTMLAttributes, DetailedHTMLProps } from "react"; import { type UrlObject } from "url"; import { type VariantProps } from "@mbao01/common/libs"; import { getLinkClasses } from "./constants"; export type LinkProps = Omit< Omit< DetailedHTMLProps, HTMLAnchorElement>, keyof OriginalLinkProps | "style" > & OriginalLinkProps, "href" > & { isExternal?: boolean; hardNavigate?: boolean } & ( | { href: __next_route_internal_types__.RouteImpl | UrlObject; isInternal?: true; } | { href: string; isInternal?: false; } ) & VariantProps;