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. */ target?: LinkTarget; }; 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); };