import { type ChangeEvent, type FocusEventHandler, type InputHTMLAttributes, type MouseEventHandler, type MutableRefObject } from 'react';
export interface TextFieldProps {
    value?: string;
    onChange?: (value: string) => void;
    startAdornment?: JSX.Element;
    endAdornment?: JSX.Element;
    disabled?: boolean;
    className?: string;
    size?: 'small' | 'large';
    inputProps?: {
        ref?: MutableRefObject<HTMLInputElement | null> | ((inputEl: HTMLInputElement) => void);
    } & Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'>;
    clearable?: boolean;
    onFocus?: FocusEventHandler<HTMLInputElement>;
    onBlur?: FocusEventHandler<HTMLInputElement>;
    onClick?: MouseEventHandler<HTMLInputElement>;
    helperText?: string;
    hasError?: boolean;
    type?: 'text' | 'datetime-local';
}
export declare const TextField: import("react").ForwardRefExoticComponent<TextFieldProps & import("react").RefAttributes<HTMLInputElement | undefined>>;
export declare const handleString: (setter: (v: string) => void) => (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
