import { ESMPluginsModule, IFiles } from "./types.cjs"; import execa from "execa"; //#region src/utils.d.ts declare class SpawnError extends Error { stdout: string; stderr: string; constructor(message: string, stdout: string, stderr: string); toString(): string; } /** * Executes a child process without limitations on stdout and stderr. * On error (exit code is not 0), it rejects with a SpawnProcessError that contains the stdout and stderr streams, * on success it returns the streams in an object. * @param {string} command - Command * @param {string[]} [args] - Arguments * @param {Object} [options] - Options for child_process.spawn */ declare function spawnProcess(command: string, args: string[], options: execa.Options): execa.ExecaChildProcess; /** * Find a file by walking up parent directories */ declare const findUp: (name: string) => string | undefined; /** * Forwards `rootDir` or finds project root folder. */ declare const findProjectRoot: (rootDir?: string) => string | undefined; declare const humanSize: (size: number) => string; declare const zip: (zipPath: string, filesPathList: IFiles, useNativeZip?: boolean) => Promise; declare function trimExtension(entry: string): string; declare const isEmpty: (obj: Record) => boolean; declare const isESMModule: (obj: unknown) => obj is ESMPluginsModule; //#endregion export { SpawnError, findProjectRoot, findUp, humanSize, isESMModule, isEmpty, spawnProcess, trimExtension, zip }; //# sourceMappingURL=utils.d.cts.map