/** * @fileoverview Command executor for external tool checks * * Executes external commands (eslint, prettier, etc.) with abort * and timeout support, then parses output into violations. */ import type { CheckViolation, CommandConfig } from './check-config.js'; /** Options for executing an external command. */ export interface CommandExecutorOptions { readonly cwd: string; readonly signal?: AbortSignal | undefined; readonly timeout?: number | undefined; } /** Result of executing an external command, including parsed violations. */ export interface CommandExecutionResult { readonly violations: CheckViolation[]; readonly aborted: boolean; readonly exitCode: number | null; readonly error?: string; /** True only for ENOENT / exit 127 — optional tool missing, not a command fault. */ readonly notInstalled?: boolean; } /** * Execute an external command and parse its output into violations. */ export declare function executeCommand(config: CommandConfig, files: readonly string[], options: CommandExecutorOptions): Promise; //# sourceMappingURL=command-executor.d.ts.map