import { type ChildProcess, type SpawnOptions } from "node:child_process"; export declare function resetCsdxCacheForTests(): void; export declare function formatSpawnFailure(err: unknown, exe: string): string; /** * Returns [executable, prefixArgs] such that [...prefixArgs, ...cliArgs] are the full argv after executable. */ export declare function resolveCsdxExecutable(): [string, string[]]; export declare function buildCsdxSpawnArgs(cliArgs: string[]): [string, string[]]; export type RunCsdxOptions = { stdio?: SpawnOptions["stdio"]; env?: NodeJS.ProcessEnv; /** * When stdout/stderr are inherited (default), print dim fence lines before/after * so csdx output is visually distinct from xzibit. Set `false` to disable. */ decorateOutput?: boolean; }; /** Dim rules around inherited csdx output (keeps child TTY-friendly stdio). */ export declare function printCsdxOutputFence(edge: "start" | "end"): void; export declare function runCsdx(cliArgs: string[], options?: RunCsdxOptions): ChildProcess; export declare function runCsdxAsync(cliArgs: string[], options?: RunCsdxOptions): Promise; export declare function runCsdxCapture(cliArgs: string[]): Promise<{ code: number; stdout: string; stderr: string; }>; //# sourceMappingURL=csdx.d.ts.map