import type React from 'react'; import type { FocusDetail, InputDetail, KeyboardDetail } from './types.js'; export interface TextInputRef extends HTMLElement { /** Focuses the inner input or textarea. */ focus(): void; /** Blurs the inner input or textarea. */ blur(): void; /** Selects all text in the input. */ select(): void; /** Returns the current input value. */ getValue(): string; /** Sets the input value programmatically. */ setValue(value: string): void; } /** * Emits `cx-input` and `cx-change` custom events, NOT native `input`/`change`. * Native `