import { AllowedComponentProps, VNodeProps } from '../common' declare interface LinkProps { // 链接配置 href?: string text?: string target?: '_self' | '_blank' | '_parent' | '_top' rel?: string download?: boolean // 导航配置 openType?: 'navigate' | 'redirect' | 'switchTab' | 'reLaunch' | 'navigateBack' delta?: number hoverClass?: string hoverStartTime?: number hoverStayTime?: number // 样式配置 type?: 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info' size?: 'small' | 'medium' | 'large' underline?: 'none' | 'hover' | 'always' disabled?: boolean loading?: boolean // 图标配置 icon?: string showArrow?: boolean // 角标配置 badge?: boolean badgeType?: 'primary' | 'success' | 'warning' | 'danger' | 'info' //'primary' | 'success' | 'warning' | 'error' | 'info' badgeValue?: string | number badgeMax?: number badgeDot?: boolean badgePosition?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' // 自定义样式 customClass?: string customStyle?: string | Record color?: string hoverColor?: string activeColor?: string fontSize?: string | number // 事件配置 beforeNavigate?: (url: string) => boolean | Promise } declare interface LinkEmits { (e: 'click', event: any): void (e: 'success', event: any): void (e: 'fail', event: any): void (e: 'complete', event: any): void (e: 'before-navigate', url: string): void (e: 'after-navigate', url: string): void (e: 'navigate-error', error: Error): void } declare interface _Link { new(): { $props: AllowedComponentProps & VNodeProps & LinkProps $emit: LinkEmits } } export declare const Link: _Link export default Link export type { LinkProps, LinkEmits }