import type { IntegrationEnvServiceId } from './cli-add-shared.js'; import { type PackageManagerId } from '../shared/package-managers.js'; interface IntegrationEnvPackageJson { devDependencies?: Record; scripts?: Record; } /** * Read, mutate, and persist a workspace package manifest for integration-env * scaffolding. * * @param projectDir Absolute official workspace project directory. * @param mutate Callback that mutates the parsed package manifest. * @returns A promise that resolves after `package.json` is written. */ export declare function mutateIntegrationEnvPackageJson(projectDir: string, mutate: (packageJson: IntegrationEnvPackageJson) => void): Promise; /** * Add integration-env dev dependency and package scripts when they are missing, * preserving user-defined script values with warnings. * * @param options Package mutation options. * @param options.integrationEnvSlug Normalized integration environment slug. * @param options.packageManager Package manager used for generated run scripts. * @param options.packageJson Mutable parsed workspace package manifest. * @param options.service Selected optional local service starter. * @param options.withReleaseZip Whether release zip package scripts should be added. * @param options.warnings Mutable warning collection for preserved script values. * @param options.withWpEnv Whether wp-env scripts and dependency should be added. */ export declare function addIntegrationEnvPackageJsonEntries({ integrationEnvSlug, packageManager, packageJson, withReleaseZip, service, warnings, withWpEnv }: { integrationEnvSlug: string; packageManager: PackageManagerId; packageJson: IntegrationEnvPackageJson; service: IntegrationEnvServiceId; withReleaseZip: boolean; warnings: string[]; withWpEnv: boolean; }): void; export {};