///
import childProcess from 'child_process';
import fs from 'fs';
import { Response } from 'node-fetch';
export declare const readFile: typeof fs.readFile.__promisify__;
export declare const writeFile: typeof fs.writeFile.__promisify__;
export declare const exec: (cmd: string, options?: childProcess.ExecOptions, silent?: boolean) => Promise<{
stdout: string;
}>;
export declare function partition(list: T[], predicate: (entry: T) => boolean): [T[], T[]];
export declare function currentEpochSeconds(): number;
export declare type UnixEpochSeconds = ReturnType;
export declare function prefixp(prefix: string, str: string): boolean;
export declare function openFileAppend(fileName: string): fs.WriteStream | undefined;
export declare function topologicalSort(nodes: T[], childrenF: (node: T) => T[]): T[];
export declare type WorkspaceInfo = {
[name: string]: {
location: string;
workspaceDependencies: string[];
mismatchedWorkspaceDependencies: string[];
};
};
export declare function getWorkSpaceInfo(dir: string): Promise;
export declare function bhoosPackage(): any;
export declare const mkdirp: (folders: string, options?: childProcess.ExecOptions) => Promise<{
stdout: string;
}>;
export declare const rimraf: (path: string, options?: childProcess.ExecOptions) => Promise<{
stdout: string;
}>;
export declare const stat: typeof fs.stat.__promisify__;
export declare const mkdtemp: () => Promise;
export declare const exists: (path: string) => Promise;
export declare function ensureDirectory(dir: string): void;
export declare function createTempDir(cb: (dir: string) => Promise): Promise;
export declare function withTarBundle(dir: string, callback: (bundleFile: string) => Promise): Promise;
export declare function splitNameVersion(appName: string, { defaultVersion }: {
defaultVersion: string;
}): string[];
export declare function downloadToTemp(fetchResponse: Response, callback: (file: string) => Promise): Promise;
export declare function areBhoosPackagesRepeated(initialPath: string): boolean;