import type { PackageManagerId } from '../shared/package-managers.js'; import type { InitFilePlan } from './cli-init-types.js'; export interface YarnPnpNodeModulesConfig { filePlan: InitFilePlan; path: string; source: string; } /** * Plan the minimal Yarn configuration change that makes generated postinstall * compatibility hooks safe for an already-installed Plug'n'Play project. * * Yarn PnP resolves package files from read-only zip archives. The generated * @ttsc/lint hook deliberately patches a pinned formatter source, so retrofit * projects switch observed and implicit Yarn Berry PnP installations to * Yarn's mutable node-modules linker before the next install runs that hook. */ export declare function getYarnPnpNodeModulesConfig(projectDir: string, packageManager: PackageManagerId, plannedPackageManager?: string): YarnPnpNodeModulesConfig | undefined;