import { type LicenseAuditWorkspaceOptions } from './audit-directory.mts'; export interface PnpmLicenseAuditWorkspace { readonly cleanup: () => void; readonly cwd: string; /** Rewrites `pnpm-workspace.yaml` to support every platform in the lockfile, for listing. */ readonly useListingWorkspace: () => void; } /** The rendered audit files: one lockfile and the `pnpm-workspace.yaml` for each audit phase. */ export interface PnpmLicenseAuditFiles { /** Supports only the current platform, so `pnpm fetch` stays within the disk quota. */ readonly fetchWorkspace: string; readonly lockfile: string; /** Supports every platform in the lockfile, so `pnpm licenses list` reports every package. */ readonly listingWorkspace: string; } /** * Renders the audit copies of `pnpm-lock.yaml` and the two `pnpm-workspace.yaml` variants. * * Fetching every platform binary in a lockfile can need several times the disk of the current * platform alone and exceed the quota of the temporary directory. The fetch workspace therefore * supports only the `current` platform. pnpm reports every package missing from the store as * Unknown, so the listing workspace supports every `os`, `cpu`, and `libc` in the lockfile and * `pnpm licenses list` covers the whole graph, with off-platform licenses resolved from the * registry afterwards. * * The lockfile drops every `engines` constraint because pnpm 12's `fetch` ignores `force` and skips * an optional package whose `engines` exclude the running Node.js. */ export declare function renderPnpmLicenseAuditFiles(lockfileSource: string, workspaceSource: string, paths: { lockfile: string; workspace: string; }): PnpmLicenseAuditFiles; export declare function licenseAuditParentDirectory(directory?: string): string; export declare function preparePnpmLicenseAuditWorkspace(repoRoot: string, lockfileSource: string, workspaceSource: string, options?: LicenseAuditWorkspaceOptions): PnpmLicenseAuditWorkspace;