/** * FormControlContext - 对应 MUI FormControlContext.js * 为 FormControl 内的子组件提供上下文 */ export interface FormControlState { adornedStart?: boolean; setAdornedStart?: (value: boolean) => void; color?: 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning'; disabled?: boolean; error?: boolean; filled?: boolean; focused?: boolean; fullWidth?: boolean; hiddenLabel?: boolean; size?: 'small' | 'medium'; onBlur?: () => void; onFocus?: () => void; onEmpty?: () => void; onFilled?: () => void; required?: boolean; variant?: 'standard' | 'outlined' | 'filled'; } export declare function setFormControlContext(state: FormControlState | null): void; export declare function getFormControlContext(): FormControlState | null; /** * 从 FormControl 上下文获取表单状态 */ export declare function useFormControl(): FormControlState | undefined; /** * 根据 props 和 FormControl 状态计算最终状态 */ export declare function formControlState(options: { props: Record; muiFormControl?: FormControlState; states: string[]; }): Record; declare const _default: { useFormControl: typeof useFormControl; formControlState: typeof formControlState; setFormControlContext: typeof setFormControlContext; getFormControlContext: typeof getFormControlContext; }; export default _default; //# sourceMappingURL=FormControlContext.d.ts.map