import React from 'react'; import type { ReactNode } from 'react'; import { type VariantProps } from 'class-variance-authority'; import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js'; declare const linkVariants: (props?: ({ size?: "base" | "lg" | null | undefined; variant?: "primary" | "secondary" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string; type LinkProps = { /** 定义子组件作为父组件的类型,详细使用方式请参考radix-ui */ asChild?: boolean; /** 类名*/ className?: string; /** 禁用链接 */ disabled?: boolean; /** 后置图标*/ suffixIcon?: ReactNode; /** 跳转链接*/ href?: string; /** 样式*/ style?: React.CSSProperties; /** 点击事件,禁用状态无法触发*/ onClick?: Function; } & VariantProps & ComponentPropsWithout<'a', RemovedProps>; /** * Link - 链接 * * @description 可点击的链接组件,支持不同尺寸、样式变体、禁用状态和后置图标 */ declare const Link: React.ForwardRefExoticComponent<{ /** 定义子组件作为父组件的类型,详细使用方式请参考radix-ui */ asChild?: boolean; /** 类名*/ className?: string; /** 禁用链接 */ disabled?: boolean; /** 后置图标*/ suffixIcon?: ReactNode; /** 跳转链接*/ href?: string; /** 样式*/ style?: React.CSSProperties; /** 点击事件,禁用状态无法触发*/ onClick?: Function; } & VariantProps<(props?: ({ size?: "base" | "lg" | null | undefined; variant?: "primary" | "secondary" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string> & ComponentPropsWithout<"a", RemovedProps> & React.RefAttributes>; export default Link; export type { LinkProps };