/** * This type defines a subset of the DDEV configuration that is relevant for the * DDEV init-config command. See the [full reference][ddev-config] for a full * reference. * * [ddev-config]: https://ddev.readthedocs.io/en/latest/users/configuration/config/ */ export interface DDEVConfig { name: string; type: string; override_config: boolean; webserver_type: string; php_version: string; nodejs_version: string; web_environment: string[]; docroot: string; database: DDEVDatabaseConfig; hooks: DDEVHooks; } export type DDEVHookEvent = "start" | "import-db" | "import-files" | "composer" | "stop" | "config" | "exec" | "pull" | "push" | "snapshot" | "restore-snapshot"; export type DDEVHooks = { [k in `pre-${DDEVHookEvent}`]?: DDEVHook[]; } & { [k in `post-${DDEVHookEvent}`]?: DDEVHook[]; }; export type DDEVHook = { exec: string; } | { "exec-host": string; }; export interface DDEVDatabaseConfig { type: string; version: string; } /** * Convert a DDEV configuration to a list of command-line flags that can be used * for the "ddev config" command. * * @param config */ export declare function ddevConfigToFlags(config: Partial): string[];