import crossSpawn from 'cross-spawn'; export declare const SUDO_TIMEOUT_MS: number; export type SudoFailure = 'bad_password' | 'not_permitted' | 'no_sudo' | 'timeout' | 'command_failed'; export interface SudoRunResult { ok: boolean; output: string; reason: SudoFailure | null; } export interface SudoRunDeps { spawn?: typeof crossSpawn; timeoutMs?: number; platform?: NodeJS.Platform; } export declare function runWithSudo(argv: { cmd: string; args: string[]; }, password: string, deps?: SudoRunDeps): Promise;