import { ICLIOptions } from '../../parser'; /** * CLI Workspace utilities */ export declare namespace Workspace { /** * Read/require package.json in a given directory * @param dir package directory */ function getPackageJson(dir: string): any; /** * List requireable module files in a given directory * @param dir directory to list */ function listRequirable(dir: string): string[]; /** * resolve a file upwards in the project workspace * @param from starting directory or file path * @param name file name to resolve */ function resolveFile(from: string, name: string): string; /** * resolve a directory upwards in the project workspace * @param from starting directory or file path * @param name directory name to resolve */ function resolveDir(from: string, name: string): string; /** * Resolve the project root directory * @param from a directory or file path from which base scan occurs */ function resolveRootDir(from?: string): string; /** * get the absolute directory of the workspace commands */ function commandsRoot(): string; /** * Resolves CLI configuration object for the main parser/program. * Note that by exposing this function, a caller might obtain different props * If called with different options than the main program. * @param options options propagated by parser or program implementation */ function resolveConfig(options?: ICLIOptions): ICLIOptions; }