import { TextFieldProps } from '@heroui/react'; import { ReactNode } from 'react'; export type ReadOnlyTextFieldVariant = NonNullable; export interface ReadOnlyTextFieldProps { className?: string; /** Description under the control (HeroUI Description slot not required). */ description?: ReactNode; /** * Shown when `value` is nullish, non-string (unless number/bool), or blank. * @default "" */ fallback?: string; /** * When true, forces the control disabled (default true — read-only display). */ isDisabled?: boolean; /** Always true for this control; kept for Input-like API symmetry. */ isReadOnly?: boolean; label: ReactNode; /** Optional name for forms / testing. */ name?: string; /** * Use a multi-line TextArea instead of Input. * Pass a number for `rows` (default 3 when multiline). */ rows?: number; /** * Unknown-safe field value. Strings/numbers/booleans are coerced; * everything else uses `fallback`. */ value?: unknown; variant?: ReadOnlyTextFieldVariant; } /** * Slim read-only HeroUI TextField (Label + Input/TextArea). * * Replaces verbose: * ```tsx * * * * * ``` * * with: * ```tsx * * ``` */ export declare function ReadOnlyTextField({ className, description, fallback, isDisabled, isReadOnly, label, name, rows, value, variant }: ReadOnlyTextFieldProps): import("react").JSX.Element; export interface ReadOnlyBooleanFieldProps extends Omit { falseLabel?: string; trueLabel?: string; value?: unknown; } /** * Read-only boolean field (`Required` / `Optional`, Yes/No, …). */ export declare function ReadOnlyBooleanField({ falseLabel, trueLabel, value, ...props }: ReadOnlyBooleanFieldProps): import("react").JSX.Element;