import type { AppConfig, Features, PackageSettings, ServerConfig } from '@ms-cloudpack/common-types'; import type { DefineFlags } from '@ms-cloudpack/common-types-browser'; export interface ReadAppConfigOptions { /** * Extra feature settings. There will be a warning if any of these are invalid. */ extraFeatures?: Features; /** * Extra package settings to add at the end of user-provided settings (so they take precedence). */ extraPackageSettings?: PackageSettings[]; /** * Extra define flags to add at the end of user-provided settings (so they take precedence). */ extraDefineFlags?: DefineFlags; /** * Enable default features that are not explicitly set in the config. */ enableDefaultFeatures?: boolean; /** * Overrides for the server config. Undefined keys will be ignored. */ extraServerConfig?: Pick; /** * Custom config file name to use instead of cloudpack.config.json */ configFileName?: string; } /** * Application configuration combined with the file paths that were used to load it. */ export interface AppConfigWithPaths { appConfig: AppConfig; /** * The paths to the config files that were read, in order of precedence. */ appConfigPaths: string[]; } /** * Reads the user config file and merges with any parent configs asynchronously. * Note this is only useful for making modifications to the user config. * For a full merged representation of config, use `readConfig` instead. * * Throws an error if the config file exists but is not valid JSON, there's some error reading it, * or any settings are invalid. (As of writing, this doesn't do full schema validation; it only * checks certain specific settings.) */ export declare function readAppConfig(appPath: string, options?: ReadAppConfigOptions): Promise; //# sourceMappingURL=readAppConfig.d.ts.map