/** * Create a new text input state object */ export function createTextInputState(initialText?: string): { text: string; cursor: number; selection: number; scrollX: number; scrollY: number; lastBlinkReset: number; }; /** * Single-line text input widget * Mutates state object in-place, returns true if text changed */ export function textInput(ctx: any, idStr: any, x: any, y: any, w: any, h: any, state: any, font: any, placeholder?: string, config?: {}): boolean; /** * Multi-line textarea widget */ export function textarea(ctx: any, idStr: any, x: any, y: any, w: any, h: any, state: any, font: any, placeholder?: string, config?: {}): boolean;