export declare const WINDOWS_POWERSHELL_7_COMMAND = "pwsh.exe"; export declare const WINDOWS_POWERSHELL_7_INSTALL = "winget install --id Microsoft.PowerShell --source winget"; export type WindowsPowerShellProbe = (command: string, args: readonly string[]) => { status: number | null; stdout?: string | null; error?: NodeJS.ErrnoException; }; export declare function resolveWindowsPowerShell7(probe?: WindowsPowerShellProbe): string; export declare const quotePowerShell: (value: string) => string; /** PowerShell 7でscriptを実行し、stdoutを返す。失敗の詳細はonFailureが製品のエラーへ変える。 */ export declare function windowsPowerShellSync(script: string, onFailure: () => Error, timeout?: number): string; /** Start-Process -ArgumentListへそのまま渡せる、CommandLineToArgvWの規則で引用した引数列。 */ export declare function windowsStartProcessArgumentList(args: string[]): string;