import { HTMLAttributes } from "react";
export interface TextProps extends HTMLAttributes<HTMLInputElement> {
    type: "text";
    disabled?: boolean;
    value: string;
    legend?: string;
    required?: boolean;
    requiredText?: string;
    onValidate?: (value: string) => boolean;
    validationError?: string;
}
export interface PasswordProps extends HTMLAttributes<HTMLInputElement> {
    type: "password";
    disabled?: boolean;
    value: string;
    legend?: string;
    required?: boolean;
    requiredText?: string;
}
export interface TextareaProps extends HTMLAttributes<HTMLTextAreaElement> {
    type: "textarea";
    disabled?: boolean;
    value: string;
    legend?: string;
    required?: boolean;
    requiredText?: string;
}
export interface TextHandle {
    clearError: () => void;
    showError: () => void;
}
declare const Text: import("react").ForwardRefExoticComponent<(TextProps | PasswordProps | TextareaProps) & import("react").RefAttributes<TextHandle>>;
export default Text;
