/** * @typedef {import('./parse-source-string').WPSource} WPSource */ /** * Environment variable configuration. * * @typedef WPEnvironmentVariableConfig * @property {?number} port An override for the development environment's port. * @property {?number} mysqlPort An override for the development environment's MySQL port. * @property {?number} testsPort An override for the testing environment's port. * @property {?number} testsMysqlPort An override for the testing environment's MySQL port. * @property {?number} phpmyadminPort An override for the development environment's phpMyAdmin port. * @property {?WPSource} coreSource An override for all environment's coreSource. * @property {?string} phpVersion An override for all environment's PHP version. * @property {?boolean} multisite An override for if environmen should be multisite. * @property {?Object.} lifecycleScripts An override for various lifecycle scripts. */ /** * Gets configuration options from environment variables. * * @param {string} cacheDirectoryPath Path to the work directory located in ~/.wp-env. * * @return {WPEnvironmentVariableConfig} Any configuration options parsed from the environment variables. */ export default function getConfigFromEnvironmentVars(cacheDirectoryPath: string): WPEnvironmentVariableConfig; export type WPSource = import("./parse-source-string").WPSource; /** * Environment variable configuration. */ export type WPEnvironmentVariableConfig = { /** * An override for the development environment's port. */ port: number | null; /** * An override for the development environment's MySQL port. */ mysqlPort: number | null; /** * An override for the testing environment's port. */ testsPort: number | null; /** * An override for the testing environment's MySQL port. */ testsMysqlPort: number | null; /** * An override for the development environment's phpMyAdmin port. */ phpmyadminPort: number | null; /** * An override for all environment's coreSource. */ coreSource: WPSource | null; /** * An override for all environment's PHP version. */ phpVersion: string | null; /** * An override for if environmen should be multisite. */ multisite: boolean | null; /** * An override for various lifecycle scripts. */ lifecycleScripts: { [x: string]: string; } | null; };