/** * TerminalHarness wires openShell() to a headless xterm Terminal so tests can * assert against deterministic terminal screen state. */ import { Terminal } from "@xterm/headless"; import type { Kernel } from "../runtime-compat.js"; type ShellHandle = ReturnType; export declare class TerminalHarness { readonly term: Terminal; readonly shell: ShellHandle; private typing; private disposed; constructor(kernel: Kernel, options?: { cols?: number; rows?: number; env?: Record; cwd?: string; }); type(input: string): Promise; private typeInternal; screenshotTrimmed(): string; line(row: number): string; waitFor(text: string, occurrence?: number, timeoutMs?: number): Promise; exit(): Promise; dispose(): Promise; } export {};