import React, { ReactElement } from 'react'; import { PolymorphicComponentWithDynamicChildren } from '../../types'; import { TextFieldInput } from './TextFieldInput'; interface TextFieldChildrenProps { clear: () => void; } interface TextFieldProps { value?: string | number; disabled?: boolean; invalid?: boolean; optional?: boolean; onChange?: (value: string | number) => void; } declare const DEFAULT_ELEMENT = "fragment"; declare function TextField(props: PolymorphicComponentWithDynamicChildren): ReactElement; declare namespace TextField { var displayName: string; var Label: typeof import("../Label/Label").Label; var Input: typeof TextFieldInput; var Description: typeof import("../Description/Description").Description; var ErrorMessage: typeof import("../ErrorMessage/ErrorMessage").ErrorMessage; } export { TextField };