export type KeyEvent = { key: string; shift?: boolean; ctrl?: boolean; /** * For `key: "paste"` events emitted when the terminal is in * bracketed-paste mode, the full pasted text. Undefined for normal * keypresses. */ text?: string; }; export type InputSource = { nextKey(): Promise; nextLine(prompt: string): Promise; destroy(): void; };