import { DependenciesResult, PackagerOptions } from "../types.cjs"; import { Packager } from "./packager.cjs"; //#region src/packagers/yarn.d.ts interface YarnTree { name: string; color: 'bold' | 'dim' | null; children?: YarnTree[]; hint?: null; depth?: number; shadow?: boolean; } interface YarnDeps { type: 'tree'; data: { type: 'list'; trees: YarnTree[]; }; } /** * Yarn packager. * * Yarn specific packagerOptions (default): * flat (false) - Use --flat with install * ignoreScripts (false) - Do not execute scripts during install */ declare class Yarn implements Packager { private packagerOptions; constructor(packagerOptions: PackagerOptions); get lockfileName(): string; get copyPackageSectionNames(): string[]; get mustCopyModules(): boolean; getVersion(cwd: string): Promise<{ version: string; isBerry: boolean; }>; getProdDependencies(cwd: string, depth?: number): Promise; rebaseLockfile(pathToPackageRoot: string, lockfile: string): string; install(cwd: string, extraArgs: Array, hasLockfile?: boolean): Promise; prune(cwd: string): Promise; runScripts(cwd: string, scriptNames: string[]): Promise; } //#endregion export { Yarn, YarnDeps }; //# sourceMappingURL=yarn.d.cts.map