import type { StepHandler } from '.'; import type { Directory } from '../v1/resources'; /** * @inheritDoc writeFiles * @hasRunnableExample * @landingPage /test.php * @example * * * { * "step": "writeFiles", * "writeToPath": "/wordpress/wp-content/plugins/my-plugin", * "filesTree": { * "name": "my-plugin", * "files": { * "index.php": "Hello World!'; ?>", * "public": { * "style.css": "a { color: red; }" * } * } * } * } * */ export interface WriteFilesStep { step: 'writeFiles'; /** The path of the file to write to */ writeToPath: string; /** * The 'filesTree' defines the directory structure, supporting 'literal:directory' or * 'git:directory' types. The 'name' represents the root directory, while 'files' is an object * where keys are file paths, and values contain either file content as a string or nested objects * for subdirectories. */ filesTree: DirectoryResource; } /** * Writes multiple files to a specified directory in the Playground * filesystem. * ``` * my-plugin/ * ├── index.php * └── public/ * └── style.css * ``` */ export declare const writeFiles: StepHandler>;