export type WPSource = import("./parse-source-string").WPSource; /** * The root configuration options. */ export type WPRootConfigOptions = { /** * The port to use in the development environment. */ port: number; /** * The port to use in the tests environment. */ testsPort: number; /** * The scripts to run at certain points in the command lifecycle. */ lifecycleScripts: { [x: string]: string | null; }; /** * The script to run after the "start" command has completed. */ afterStart: { [x: string]: string | null; }; /** * The script to run after the "clean" command has completed. */ afterClean: { [x: string]: string | null; }; /** * The script to run after the "destroy" command has completed. */ afterDestroy: { [x: string]: string | null; }; /** * The environment-specific configuration options. */ env: { [x: string]: WPEnvironmentConfig; }; }; /** * The environment-specific configuration options. (development/tests/etc) */ export type WPEnvironmentConfig = { /** * The WordPress installation to load in the environment. */ coreSource: WPSource; /** * Plugins to load in the environment. */ pluginSources: WPSource[]; /** * Themes to load in the environment. */ themeSources: WPSource[]; /** * The port to use. */ port: number; /** * The port to use for MySQL. Random if empty. */ mysqlPort: number; /** * The port to use for phpMyAdmin. If empty, disabled phpMyAdmin. */ phpmyadminPort: number; /** * Whether to set up a multisite installation. */ multisite: boolean; /** * Mapping of wp-config.php constants to their desired values. */ config: Object; /** * Mapping of WordPress directories to local directories which should be mounted. */ mappings: { [x: string]: import("./parse-source-string.js").WPSource; }; /** * Version of PHP to use in the environments, of the format 0.0. */ phpVersion: string | null; }; /** * The root configuration options. */ export type WPRootConfig = WPEnvironmentConfig & WPRootConfigOptions; /** * Given a directory, this parses any relevant config files and * constructs an object in the format used internally. * * * @param {string} configDirectoryPath A path to the directory we are parsing the config for. * @param {string} cacheDirectoryPath Path to the work directory located in ~/.wp-env. * * @return {Promise} Parsed config. */ export function parseConfig(configDirectoryPath: string, cacheDirectoryPath: string): Promise; /** * Gets the path to the config file. * * @param {string} configDirectoryPath The path to the directory containing config files. * @param {string} type The type of config file we're interested in: 'local' or 'override'. * * @return {string} The path to the config file. */ export function getConfigFilePath(configDirectoryPath: string, type?: string): string;