import { ICloudBaseConfig } from '../types'; export interface ResolveOptions { searchFrom?: string; configPath?: string; mode?: string; } /** * 从配置文件中解析 cloudbase 配置 */ export declare function resolveCloudBaseConfig(options: ResolveOptions): Promise; /** * 从命令行和配置文件中获取 envId */ export declare function getEnvId(commandOptions: any): Promise; export interface ICloudBaseOptions { cwd?: string; cover?: boolean; configPath?: string; } export declare const renderConfig: (template: string, view: Record) => any; export declare class ConfigParser { static instance: ConfigParser; static get(key?: string, defaultValue?: any, options?: ICloudBaseOptions): Promise; static update(key?: string, value?: any, options?: ICloudBaseOptions): Promise; static parseRawConfig(rawConfig: Record, cwd?: string, options?: { mode?: string; }): Promise>; private cwd; private configPath; private cover; constructor(options?: ICloudBaseOptions); options(options?: ICloudBaseOptions): this; get(key?: string, defaultValue?: T): Promise; update(key: string | Record, value?: any, cover?: boolean): Promise; getConfig(): Promise>; updateConfig(config: ICloudBaseConfig, cover?: boolean): Promise; }