import type { ScriptedInput } from "../../tui/input/scripted.js"; import type { KeyEvent } from "../../tui/input/types.js"; import type { FrameRecorder } from "../../tui/output/recorder.js"; export type Step = { when: (frame: string) => boolean; key: KeyEvent | string; }; /** Run the form while a poller feeds each key once the screen shows the * state a person would react to. */ export declare function drive(run: () => Promise, input: ScriptedInput, recorder: FrameRecorder, steps: Step[]): Promise; export declare function typing(text: string): Step[]; export declare const shown: (text: string) => (frame: string) => boolean; export declare const ctrl: (key: string) => KeyEvent; export declare const times: (key: string, count: number) => Step[];