import { type Modules, type Project } from '@pnpm/assert-project'; import { tempDir } from '@pnpm/prepare-temp-dir'; import type { ProjectManifest } from '@pnpm/types'; export type { Modules, Project }; export type ManifestFormat = 'JSON' | 'JSON5' | 'YAML'; export { tempDir }; interface LocationAndManifest { location: string; package: ProjectManifest; } export declare function preparePackages(pkgs: Array, opts?: { manifestFormat?: ManifestFormat; tempDir?: string; }): Record; export declare function prepare(manifest?: ProjectManifest, opts?: { manifestFormat?: ManifestFormat; tempDir?: string; }): Project; export declare function prepareEmpty(): Project; /** * Kill a process started with `detached: true` together with everything it * started, whatever state a failed test left them in. Only a group that is * gone already is silently accepted. */ export declare function killProcessGroup(pid: number): void; /** * Whether the process `pid` is gone before `timeout` milliseconds pass. A * process that has just died still counts until it is reaped. */ export declare function endsWithin(pid: number, timeout: number): Promise;