import React from 'react'; import type { ComponentProps, ReactNode } from 'react'; export type TextInputVariant = 'outline' | 'ghost'; /** Where the field message sits relative to the bordered control. */ export type TextInputFieldMessagePlacement = 'outside' | 'inside'; export type TextInputProps = Omit, 'className'> & { /** Root class name. */ className?: string; /** * `outside` shows the message below the bordered wrapper, `inside` under the value row within * the border. Defaults to `outside`. */ fieldMessagePlacement?: TextInputFieldMessagePlacement; /** Label above the input. */ label?: string; /** Content before the input, e.g. an icon. */ leading?: ReactNode; /** Content after the input, e.g. a clear button. */ trailing?: ReactNode; /** Suffix text after the input value, inside the field. */ trailingText?: string; /** Neutral helper message below the input, without an icon. */ message?: ReactNode; /** Error message, shown when `error` is true. Falls back to `message`. */ errorMessage?: ReactNode; /** Icon before the error text. Defaults to the exclamation mark icon. */ errorMessageIcon?: ReactNode; /** Success message below the input. Hidden while an error shows. */ successMessage?: ReactNode; /** Icon before the success text. Defaults to the checkmark icon. */ successMessageIcon?: ReactNode; /** Marks the input invalid and applies the error border and styling. */ error?: boolean; /** `outline` always shows the border, `ghost` only on focus. Defaults to `outline`. */ variant?: TextInputVariant; }; export declare const TextInput: React.ForwardRefExoticComponent & React.RefAttributes>; //# sourceMappingURL=TextInput.d.ts.map