/** * A simulated TTY, to exercise wizards without a real terminal. * * `runWizard` refuses to mount outside a TTY — that is what protects the user * from a full-screen UI inside a pipe. To test the wizard itself, then, stdout * becomes a buffer and stdin an emitter we inject keyboard bytes into. */ export interface FakeTty { /** Tudo o que foi escrito, concatenado. */ output(): string; isRawMode(): boolean; /** Injeta bytes de teclado — `\r` para enter, `\x1b[B` para seta abaixo. */ press(bytes: string): void; restore(): void; } export declare const KEY: { readonly enter: "\r"; readonly up: "\u001B[A"; readonly down: "\u001B[B"; readonly left: "\u001B[D"; readonly right: "\u001B[C"; readonly backspace: ""; readonly escape: "\u001B"; }; export declare function fakeTty(): FakeTty; //# sourceMappingURL=fake-tty.d.ts.map