import { OnyxExternalLinkIconProps } from '../OnyxExternalLinkIcon/types.js'; export type OnyxRouterLinkProps = SharedLinkProps; export type SharedLinkProps = { /** * The URL/link to point to. Will use the router for internal links if provided, see [our * documentation](https://onyx.schwarz/development/router.html) for further details. */ href: string; /** * Where to display the linked URL (same tab, new tab etc.). * For `_blank`, the `rel="noreferrer"` will be set automatically. * If set to "auto", external links will be opened with "_blank" and internal ones with "_self". */ target?: LinkTarget | "auto"; }; export declare const LINK_TARGETS: readonly ["_self", "_blank", "_parent", "_top"]; export type LinkTarget = (typeof LINK_TARGETS)[number]; export type WithLinkProp = { /** * If set, the component will be rendered as link. */ link?: string | (TExternalLink extends true ? SharedLinkProps & OnyxExternalLinkIconProps : SharedLinkProps); };