import type { AbstractControl } from './abstract-control'; import React from 'react'; export interface DFormControl { control: AbstractControl; wrapperAttrs: { [index: string]: boolean; }; inputAttrs: { 'aria-invalid'?: boolean; 'aria-describedby'?: string; }; } export type DErrorInfo = string | { message: string; status: 'warning' | 'error'; } | { [index: string]: string | { message: string; status: 'warning' | 'error'; }; }; export interface DFormItemProps extends Omit, 'children'> { children: React.ReactNode | ((formControls: { [N in keyof T]: DFormControl; }) => React.ReactNode); dFormControls?: T; dLabel?: React.ReactNode; dLabelWidth?: number | string; dLabelExtra?: ({ title: string; icon?: React.ReactElement; } | string)[]; dShowRequired?: boolean; dColNum?: number; dSpan?: number | string | true; } export declare function DFormItem(props: DFormItemProps): JSX.Element | null;