import { IConfig, IMap, IScope, ICli } from '../types'; import { IKawkahParserResult } from 'kawkah-parser'; /** * Reads looking for root Gobu configuration. */ export declare function readRoot(): Promise; /** * Reads package.json * * @param filename the path of the package to be found. */ export declare function readPackage(filename: string): Promise; /** * Reads child workspaces or scopes using glob pattern matching. * * @param globs the globs of paths representing scoped workspaces. */ export declare function readScopes(globs?: string[]): Promise; /** * Imports commands for root or child scopes. * * @param config the current loaded config. * @param pargs parsed result to pass to command init. * @param cli the cli object to pass to command init. */ export declare function externalCommands(config: IConfig, pargs: IKawkahParserResult, cli: ICli): IConfig; /** * Reads scopes recursing up building project configuration. * * @param defaults default values for the configuration. */ export declare function load(defaults?: Partial): Promise<{ scopes?: IMap; commands?: IMap; isExternal?: boolean; packageManager?: "yarn" | "npm"; name?: string; command?: string; workspaces?: string[]; entrypoint?: string; nohoist?: string[]; description?: string; version?: string; scripts?: IMap; dependencies?: IMap; devDependencies?: IMap; peerDependencies?: IMap; optionalDependencies?: IMap; directory?: string; path?: string; color?: import("../types").Styles; }>;