export type WPConfig = import("./config").WPConfig; /** * @typedef {import('./config').WPConfig} WPConfig */ /** * Error subtype which indicates that the lifecycle script failed. */ export class LifecycleScriptError extends Error { constructor(event: any, stderr: any); event: any; } /** * Executes any defined life cycle script. * * @param {string} event The lifecycle event to run the script for. * @param {WPConfig} config The config object to use. * @param {Object} spinner A CLI spinner which indciates progress. * * @return {Promise} Resolves when the script has completed and rejects when there is an error. */ export function executeLifecycleScript(event: string, config: WPConfig, spinner: Object): Promise;