import childProcess from 'node:child_process'; interface ExecOptions extends childProcess.SpawnOptions { maxBuffer?: number; } export declare class ProcessExecutionError extends Error { readonly stdout: string; readonly stderr: string; readonly exitCode: number | null; readonly signal: NodeJS.Signals | null; constructor(message: string, stdout?: string, stderr?: string, exitCode?: number | null, signal?: NodeJS.Signals | null); toJSON(): string; } export declare const getBuiltInModules: () => string[]; export declare function exec(command: string, args: readonly string[], options: ExecOptions, timeout?: number): Promise; /** * Gets external peerDeps that shouldn't be a * part of the build in a regex format - * /(^dep-a$|^dep-a\/|^dep-b$|^dep-b\/)\// */ export declare function getExternals(packageName: string, installPath: string): { externalPackages: string[]; externalBuiltIns: string[]; }; type ParsePackageResult = { name: string; version: string | null; scoped: boolean; isLocal?: boolean; normalPath?: string; }; export declare function parsePackageString(packageString: string): ParsePackageResult; export {}; //# sourceMappingURL=common.utils.d.ts.map