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<KeyEvent | string>);
    feedKey(key: KeyEvent): void;
    feedLine(line: string): void;
    nextKey(): Promise<KeyEvent>;
    nextLine(_prompt: string): Promise<string>;
    destroy(): void;
}
