import './error-handling-text-input.styles.scss'; import React, { FC } from 'react'; import { InputProps } from 'antd/lib/input'; /** * ErrorHandlingTextInputProps * * @memberof ErrorHandlingTextInput */ interface ErrorHandlingTextInputProps extends InputProps { /** * Error Message to be displayed on validation */ errorMessage?: String | React.ReactElement; /** * Success Message to be displayed on validation */ successMessage?: String | React.ReactElement; /** * flag for if the input field needs no validation */ noValidate?: boolean; /** * Regex for validating a certian input field */ validationRegex?: RegExp; /** * Validation function if dev wants to pass their own error handling */ validationCallback?: Function; /** * flag for whether or not error display should be onUpdate or onBlur */ updateOnInteraction?: boolean; } /** * A Simple Text Input Component * Text input field is set to handle errors on keyboard input. * Styling is changed on whether the value matches the validation method specified by the dev. */ export declare const ErrorHandlingTextInput: FC; export {};