export default class WorkerProcess { /** * Executes a binary with explicit arguments without a shell, capturing stdout. * * No shell string is ever constructed, so filenames or paths containing shell * metacharacters cannot inject extra commands. Always prefer this over building * a shell command when arguments derive from user-controlled paths. * * @param command - The executable to run (e.g. "du", "wc", "powershell"). * @param args - Arguments passed verbatim; no quoting or interpolation is applied. * @returns The command's captured stdout. * @example * const size = await worker.execCommandSafely("wc", ["-c", "--", targetPath]); */ execCommandSafely(command: string, args?: string[]): Promise; /** Inherits stdio; rejects if the process exits with a non-zero code. */ spawnCommand(command: string, args?: string[]): Promise; static getOS(): string; }