/// import { ChildProcess, ExecOptions } from 'child_process'; import { PagerOptions } from './api'; /** * 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; /** * Returns true iff we are on the Windows platform. * @ignore */ export declare const isWindows: () => 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; /** * Encodes a package name to be safely transmitted via HTTP requests. */ export declare const encodePackageName: (name: string) => string; /** * Decodes a package name transmitted via HTTP requests. */ export declare const decodePackageName: (name: string) => string; /** * Page an input source using sensible pager applications per-platform. */ export declare const pager: (options: PagerOptions) => Promise<{ code: number | null; signal: string | null; }>; //# sourceMappingURL=utils.d.ts.map