///
import * as React from 'react';
import { SPACE_STEPS, TYPE_STEPS } from '../../utils/modular-scale';
export interface ErrorFieldProps {
'aria-describedby': string;
'aria-invalid': 'true';
}
export interface RenderPropsError {
id: string;
status: 'invalid';
fieldProps: ErrorFieldProps;
}
export interface RenderPropsValid {
id: string;
status: 'valid';
}
export interface RenderPropsPending {
id: string;
status?: undefined;
}
export declare type RenderProps = RenderPropsPending | RenderPropsError | RenderPropsValid;
export interface PropsCommon {
id: string;
label: string;
description?: string;
status: 'unknown' | 'invalid' | 'valid';
/** only used when status is set to invalid */
errorMessage?: string;
/** **IMPORTANT:** This is strongly recommended against because sight users all benefit from a persistent label. The `placeholder` is not a worthy substitute in most cases. */
hideLabelInaccessibly?: true;
/** defaults to `mouse` */
labelTypeStep?: keyof typeof TYPE_STEPS;
/** defaults to `moon` */
spacing?: keyof typeof SPACE_STEPS;
}
export interface Props extends PropsCommon {
children: (renderProps: RenderProps) => React.ReactNode;
}
export declare class FormGroup extends React.Component {
render(): JSX.Element;
}
export default FormGroup;