import { TextInputProps } from '../../../../components'; import { FieldPath, FieldValues } from 'react-hook-form'; import { FormFieldProps } from '../../../../types'; export type TransformProps = { input?: (value: T) => string; output?: (value: string) => T; }; type AllowedTextInputProps = Omit; export type FormTextFieldProps = FieldPath, TTransform = string> = FormFieldProps & AllowedTextInputProps & { showOptionalText?: boolean; /** * Optional transformation functions for input and output values: * - `input`: Converts the form's value to a string. * - `output`: Converts the input string back to the desired format. */ transform?: TransformProps; }; export declare const FormTextField: = FieldPath, TTransform = string>({ id: suppliedId, name, onBlur, errorMode, rules, shouldUnregister, showOptionalText, defaultValue, transform, ...muiProps }: FormTextFieldProps) => import("@emotion/react/jsx-runtime").JSX.Element; export {};