import { APITextInputComponent } from "discord-api-types/v10"; import { ComponentBuilderBase } from "./ComponentBuilderBase.js"; export declare enum TextInputStyle { Short = 1, Paragraph = 2 } /** * Represents a non-validated text input component */ export declare class TextInputBuilder extends ComponentBuilderBase { constructor(id: string, label: string, style: TextInputStyle); /** * Sets the placeholder for this text input * @param placeholder The placeholder to use for this text input */ setPlaceholder(placeholder: string): this; /** * Sets a prefilled value for the text input * @param value Text to fill with */ setValue(value: string): this; /** * Sets the label for this button * @param label The label to display on this button */ setLabel(label: string): this; /** * Sets the style of this button * @param style The style of the button */ setStyle(style: TextInputStyle): this; /** * Sets the minimum values that must be selected in the text input * @param minValues The minimum values that must be selected */ setMinLength(minLength: number): this; /** * Sets the maximum values that must be selected in the text input * @param minValues The maximum values that must be selected */ setMaxLength(maxLength: number): this; /** * Sets the custom Id for this text input * @param customId The custom id to use for this text input */ setCustomId(customId: string): this; /** * Sets whether or not this text input is required * @param disabled Whether or not this text input is required - Default: true */ setRequired(required?: boolean): this; toJSON(): APITextInputComponent; }