/// import { ChildProcess, ExecOptions } from 'child_process'; import packageJson from 'package-json'; /** * The development dependencies of this package. * @ignore */ export declare const devDependencies: { [key: string]: string; }; /** * The version of this package. Used for synchronizing Diez versions. * @ignore */ export declare const diezVersion: string; /** * A Promise-wrapped `child_process.exec`. * @param command - The command to run, with space-separated arguments. * @param options - The child_process.exec options. */ export declare const execAsync: (command: string, options?: ExecOptions | undefined) => Promise; /** * Returns true iff we are on the macOS platform. * @ignore */ export declare const isMacOS: () => boolean; /** * Loops through all dependencies to locate Diez plugins, and returns a map of module names to [[DiezConfiguration]]s. */ export declare const findPlugins: (rootPackageName?: string, bootstrapRoot?: string | undefined) => Promise>>; /** * Wrapped require to support CLI plugin infrastructure. * @ignore */ export declare const cliRequire: (plugin: string, path: string) => T; /** * Provides an async check for whether we can run a command from the command line. * * Resolves `true` iff the command both runs and produces output. */ export declare const canRunCommand: (command: string) => Promise; /** * Locate a binary on macOS. */ export declare const locateBinaryMacOS: (bundleId: string) => Promise; /** * Exit trap for shutting down handles and preventing process leaks in Node. */ export declare const exitTrap: (cleanup: () => void) => void; /** * Checks if an argument is a ChildProcess */ export declare const isChildProcess: (proc: void | Buffer | ChildProcess) => proc is ChildProcess; /** * Checks if a package name seems to be a Diez package. * @ignore */ export declare const isDiezPackage: (packageName: string) => boolean; /** * Fetch information about the diez package in the npm registry. * @ignore */ export declare const getDiezVersionInformationFromNpm: () => Promise<{ latestDiezVersion: string; allDiezVersions: { readonly [version: string]: packageJson.AbbreviatedVersion; }; }>; //# sourceMappingURL=utils.d.ts.map