import { type ReactNode } from 'react'; import type { SpinProps as SemiSpinProps } from '@douyinfe/semi-ui/lib/es/spin/index.js'; import type { IComponentBaseProps } from '../../typings'; export type LoadingSize = 'mini' | 'small' | 'middle' | 'large'; export type LoadingLabelSize = 'small' | 'normal' | 'middle' | 'large'; export type LoadingColor = 'default' | 'blue' | 'red' | 'green'; export type SizeMapping = Record; export interface LoadingProps extends IComponentBaseProps, Omit { loading: boolean; size?: LoadingSize; color?: LoadingColor; labelSize?: LoadingLabelSize; label?: string | ReactNode; className?: string; }