import { SpawnSyncOptions, SpawnSyncReturns } from 'child_process'; export declare function escapeRegExp(str: string): string; export declare function replaceAll(str: string, find: string, replacement: string): string; export declare function isPrimitive(x: any): boolean; /** Run an external process synchronously and throws if error * Note 1: the arguments must be provided separately, e.g. instead * of run("npm install"), use run("npm", ["install"]). * Note 2: I don't think this goes through a shell (e.g. bash) and * IIRC on Linux, expansion of wildcards is done by the shell, not * by the target program. So don't use wildcard arguments here. */ export declare function run(command: string, args: string[], options?: SpawnSyncOptions): SpawnSyncReturns; export declare function runAndThrowOnFail(command: string, args: string[], options?: SpawnSyncOptions): SpawnSyncReturns; export declare function flatten(array: any[]): any[];