/** 异步执行有时限的探测;超时直接结束等待,不依赖子进程关闭管道。 */ export declare function runExternalCommandAsync(command: string, args: readonly string[], options?: ExternalCommandOptions): Promise; export interface ExternalCommandOptions { cwd?: string; env?: NodeJS.ProcessEnv; timeoutMs?: number; maxBufferBytes?: number; input?: string; signal?: AbortSignal; } export declare class ExternalCommandError extends Error { readonly command: string; readonly args: readonly string[]; readonly stderr: string; readonly timedOut: boolean; constructor(command: string, args: readonly string[], stderr: string, options?: ErrorOptions & { timedOut?: boolean; }); } export declare function runExternalCommand(command: string, args: readonly string[], options?: ExternalCommandOptions): string; //# sourceMappingURL=external-command.d.ts.map