export type WPConfig = import("./config").WPConfig; export type WPEnvironmentConfig = import("./config").WPEnvironmentConfig; export type WPSource = import("./config").WPSource; export type WPEnvironment = "development" | "tests"; export type WPEnvironmentSelection = "development" | "tests" | "all"; /** * Returns true if all given environment configs have the same core source. * * @param {WPEnvironmentConfig[]} envs An array of environments to check. * * @return {boolean} True if all the environments have the same core source. */ export function hasSameCoreSource(envs: WPEnvironmentConfig[]): boolean; /** * Checks a WordPress database connection. An error is thrown if the test is * unsuccessful. * * @param {WPConfig} config The wp-env config object. */ export function checkDatabaseConnection({ dockerComposeConfigPath, debug }: WPConfig): Promise; /** * Configures WordPress for the given environment by installing WordPress, * activating all plugins, and activating the first theme. These steps are * performed sequentially so as to not overload the WordPress instance. * * @param {WPEnvironment} environment The environment to configure. Either 'development' or 'tests'. * @param {WPConfig} config The wp-env config object. * @param {Object} spinner A CLI spinner which indicates progress. */ export function configureWordPress(environment: WPEnvironment, config: WPConfig, spinner: Object): Promise; /** * Resets the development server's database, the tests server's database, or both. * * @param {WPEnvironmentSelection} environment The environment to clean. Either 'development', 'tests', or 'all'. * @param {WPConfig} config The wp-env config object. */ export function resetDatabase(environment: WPEnvironmentSelection, { dockerComposeConfigPath, debug }: WPConfig): Promise; export function setupWordPressDirectories(config: any): Promise; /** * Scans through a WordPress source to find the version of WordPress it contains. * * @param {WPSource} coreSource The WordPress source. * @param {Object} spinner A CLI spinner which indicates progress. * @param {boolean} debug Indicates whether or not the CLI is in debug mode. * @return {string} The version of WordPress the source is for. */ export function readWordPressVersion(coreSource: WPSource, spinner: Object, debug: boolean): string; export function canAccessWPORG(): Promise; export function getLatestWordPressVersion(options: any): Promise;