import React from 'react'; import type { CSSProperties, ElementType, ReactNode } from 'react'; import type { ReplaceProps } from './utils'; export type StatusType = 'success' | 'warning' | 'error' | 'info'; export type AppearanceType = 'default' | 'primary' | 'link' | 'subtle' | 'ghost'; export type CheckTriggerType = 'change' | 'blur' | 'none' | null; export type DisplayStateType = 'show' | 'hide' | 'hiding'; export interface StandardProps { /** The prefix of the component CSS class */ classPrefix?: string; /** Additional classes */ className?: string; /** Primary content */ children?: ReactNode; /** Additional style */ style?: CSSProperties; } export interface WithAsProps extends StandardProps { /** You can use a custom element for this component */ as?: As; } export interface WithAsPropsWithoutChildren extends Omit { /** You can use a custom element for this component */ as?: As; } export interface InternalRefForwardingComponent { (props: ReplaceProps, OmitKeys> & P> & { ref?: React.Ref; }, context?: any): any; contextTypes?: any; displayName?: string; }