/** Thrown when no usable tar binary can be located. */ export declare class TAR_NOT_FOUND extends Error { constructor(msg: string); } /** * Run `tar ` in a cross-platform way. * * Args MUST be `["-czf", outPath, "-C", stageDir, "."]` style (no * shell quoting needed because we use execFileSync, not execSync). * * After the Critical #3 fix: * - Honors PEAKS_TAR_BIN / TAR env vars. * - On Windows, tries C:\Windows\System32\tar.exe first; falls back * to PATH lookup if it's missing. * - Accumulates tar's stderr and re-throws it on non-zero exit so * operators can see WHY tar failed (path typo, permission, corrupt * stage dir, etc.) instead of swallowing it. * * Throws `TAR_NOT_FOUND` when the binary cannot be located. */ export declare function runTar(args: string[]): void;