import * as React from 'react'; import { type VariantProps } from 'class-variance-authority'; /** * Progress Bar Variants */ declare const progressVariants: (props?: ({ variant?: "default" | "withHandle" | null | undefined; size?: "base" | "lg" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string; export interface ProgressClassNames { /** 根容器的样式类名 */ root?: string; /** 进度条的样式类名 */ progressBar?: string; /** 拖拽手柄的样式类名 */ handle?: string; } export interface ProgressProps extends Omit, 'children' | 'onChange'>, VariantProps { /** 当前进度值 */ value: number; /** 最大值,默认为 100 */ max?: number; /** 最小值,默认为 0 */ min?: number; /** 进度条的 aria-label,用于屏幕阅读器 */ 'aria-label'?: string; /** 进度条的 aria-labelledby,关联到标签元素的ID */ 'aria-labelledby'?: string; /** 进度条描述,用于屏幕阅读器 */ 'aria-describedby'?: string; /** 值改变时的回调函数(仅在withHandle变体时有效) */ onValueChange?: (value: number) => void; /** 是否禁用交互(仅在withHandle变体时有效) */ disabled?: boolean; /** 拖拽步长,默认为1 */ step?: number; /** 自定义样式类名,用于覆盖不同部分的默认样式 */ classNames?: ProgressClassNames; } /** * Progress - 进度条 * * @description 用于显示任务完成进度的可视化组件,支持多种尺寸、颜色变体和无障碍访问 */ declare const Progress: React.ForwardRefExoticComponent>; export default Progress;