import type { IInput } from './input'; /** * Dummy input that returns immediately on read request. * Used by IContext when no command is running, should never be read from. */ export class DummyInput implements IInput { get finished(): boolean { return false; } isTerminal(): boolean { return false; } poll(timeoutMs: number): boolean { return false; } async readAsync(maxChars: number | null): Promise { return []; } read(maxChars: number | null): number[] { return []; } }