import type { KeyEvent, InputSource } from "./types.js"; export declare class ScriptedInput implements InputSource { private keyQueue; private keyWaiters; private lineQueue; private lineWaiters; /** * Optionally pre-load the input with a sequence of keys. Strings are * converted to `{ key }` events; `KeyEvent` objects are used as-is. */ constructor(initial?: ReadonlyArray); feedKey(key: KeyEvent): void; feedLine(line: string): void; nextKey(): Promise; nextLine(_prompt: string): Promise; destroy(): void; }