/** * @typedef {import('./config').WPConfig} WPConfig */ /** * Initializes the local environment so that Docker commands can be run. Reads * ./.wp-env.json, creates ~/.wp-env, ~/.wp-env/docker-compose.yml, and * ~/.wp-env/Dockerfile. * * @param {Object} options * @param {Object} options.spinner A CLI spinner which indicates progress. * @param {boolean} options.debug True if debug mode is enabled. * @param {string} options.xdebug The Xdebug mode to set. Defaults to "off". * @param {boolean} options.writeChanges If true, writes the parsed config to the * required docker files like docker-compose * and Dockerfile. By default, this is false * and only the `start` command writes any * changes. * @return {WPConfig} The-env config object. */ export default function initConfig({ spinner, debug, xdebug, writeChanges, }: { spinner: Object; debug: boolean; xdebug: string; writeChanges: boolean; }): WPConfig; export type WPConfig = import("./config").WPConfig;