import type { StepHandler } from '.'; import type { UniversalPHP } from '@php-wasm/universal'; /** * @inheritDoc defineWpConfigConsts * @hasRunnableExample * @example * * * { * "step": "defineWpConfigConsts", * "consts": { * "WP_DEBUG": true * } * } * */ export interface DefineWpConfigConstsStep { step: 'defineWpConfigConsts'; /** The constants to define */ consts: Record; /** * The method of defining the constants in wp-config.php. Possible values are: * * - rewrite-wp-config: Default. Rewrites the wp-config.php file to * explicitly call define() with the requested * name and value. This method alters the file * on the disk, but it doesn't conflict with * existing define() calls in wp-config.php. * * - define-before-run: Defines the constant before running the requested * script. It doesn't alter any files on the disk, but * constants defined this way may conflict with existing * define() calls in wp-config.php. */ method?: 'rewrite-wp-config' | 'define-before-run'; /** * @deprecated This option is noop and will be removed in a future version. * This option is only kept in here to avoid breaking Blueprint schema validation * for existing apps using this option. */ virtualize?: boolean; } /** * Defines constants in a [`wp-config.php`](https://developer.wordpress.org/advanced-administration/wordpress/wp-config/) file. * * This step can be called multiple times, and the constants will be merged. * * @param playground The playground client. * @param wpConfigConst */ export declare const defineWpConfigConsts: StepHandler; export declare function defineBeforeRun(playground: UniversalPHP, consts: Record): Promise;