import type { InputText, AdaptiveElement } from '../../models.js'; import { InputLabelPosition, InputStyle, Spacing, TextInputStyle } from '../../enums.js'; import { ActionBuilder } from '../ActionBuilder.js'; /** Fluent builder for {@link InputText} elements. */ export declare class InputTextBuilder { private readonly input; /** Sets the unique identifier (required for form submission). @param id The unique identifier. @returns The builder instance for method chaining. */ withId(id: string): this; /** Sets the descriptive label displayed above the input. @param label The label text. @returns The builder instance for method chaining. */ withLabel(label: string): this; /** Sets the placeholder text shown when the input is empty. @param placeholder The placeholder text. @returns The builder instance for method chaining. */ withPlaceholder(placeholder: string): this; /** Sets the initial value. @param value The initial value. @returns The builder instance for method chaining. */ withValue(value: string): this; /** Sets the maximum number of characters allowed. @param maxLength The maximum length. @returns The builder instance for method chaining. */ withMaxLength(maxLength: number): this; /** Sets whether the input allows multiple lines. @param isMultiline True to allow multiple lines. @returns The builder instance for method chaining. */ withIsMultiline(isMultiline?: boolean): this; /** Sets the input style (e.g. email, URL, phone). @param style The text input style. @returns The builder instance for method chaining. */ withStyle(style: TextInputStyle): this; /** Sets a regular expression for input validation. @param regex The validation regex. @returns The builder instance for method chaining. */ withRegex(regex: string): this; /** Sets whether a value is required. @param isRequired True if required. @returns The builder instance for method chaining. */ withIsRequired(isRequired?: boolean): this; /** Sets the error message shown when validation fails. @param errorMessage The error message. @returns The builder instance for method chaining. */ withErrorMessage(errorMessage: string): this; /** Sets the spacing above the element. @param spacing The spacing value. @returns The builder instance for method chaining. */ withSpacing(spacing: Spacing): this; /** Sets whether a separator line is displayed above the element. @param separator True to show a separator. @returns The builder instance for method chaining. */ withSeparator(separator?: boolean): this; /** Sets whether the element is visible. @param isVisible True to show the element. @returns The builder instance for method chaining. */ withIsVisible(isVisible: boolean): this; /** Sets the height of the element. @param height The height ('auto' or 'stretch'). @returns The builder instance for method chaining. */ withHeight(height: string): this; /** Sets the fallback behavior when the element is unsupported. @param fallback The fallback value ('drop' or an element). @returns The builder instance for method chaining. */ withFallback(fallback: 'drop' | AdaptiveElement): this; /** Sets the feature requirements for the element. @param key The feature name. @param version The minimum required version. @returns The builder instance for method chaining. */ withRequires(key: string, version: string): this; /** Sets whether content should be laid out right-to-left. @param rtl True for RTL. @returns The builder instance for method chaining. */ withRtl(rtl?: boolean): this; /** Sets the label position relative to the input. @param position The label position. @returns The builder instance for method chaining. */ withLabelPosition(position: InputLabelPosition): this; /** Sets the width of the label. @param width The label width (e.g. '100px' or '30%'). @returns The builder instance for method chaining. */ withLabelWidth(width: string): this; /** Sets the visual style of the input. @param style The input style. @returns The builder instance for method chaining. */ withInputStyle(style: InputStyle): this; /** Sets an inline action displayed inside the text input. @param configure A callback to configure the ActionBuilder. @returns The builder instance for method chaining. */ withInlineAction(configure: (b: ActionBuilder) => void): this; /** Builds and returns the configured InputText element. @returns The configured InputText instance. */ build(): InputText; } //# sourceMappingURL=InputTextBuilder.d.ts.map