/** Triage of a `styleproof-map --restore` exit code (see that CLI's taxonomy). */ export type RestoreOutcome = 'hit' | 'miss' | 'fault'; export declare function classifyRestoreExit(code: number | null | undefined): RestoreOutcome; /** One package manager's commands, as argv arrays (never joined through a shell). */ export type PackageManagerPlan = { name: 'npm' | 'yarn' | 'yarn-berry' | 'pnpm' | 'bun'; /** Frozen-lockfile install of the checked-out commit's dependencies. */ install: string[]; /** Install the head's exact StyleProof release over the base's older one. * npm uses `runtimeRoot` as an isolated prefix so its lock-disabled install * cannot re-resolve unrelated application dependency ranges. */ installExactStyleProof: (version: string, runtimeRoot: string) => string[]; /** Isolated package to link over the base checkout's StyleProof installation. * Other package managers install in-place and return null. */ isolatedStyleProofPackage: (runtimeRoot: string) => string | null; /** Tracked files that exact install may have dirtied; the driver restores each * with `git checkout --`. */ packageMetadataFiles: string[]; }; /** Runtime twin of styleproof-init's lockfile detection: the workflow template no * longer bakes package-manager commands in at scaffold time — the command reads * the checked-out repo, so a later npm→pnpm migration needs no re-init. */ export declare function detectPackageManagerPlan(root: string): PackageManagerPlan; /** The `$GITHUB_OUTPUT` lines the old workflow step emitted, verbatim, so existing * consumer steps keyed on `steps.maps.outputs.*` keep working after the collapse. * `baseRestoredFromAncestorSha` appends `base-restored-from-ancestor=` ONLY * when the base baseline was reused from a nearest ancestor (#367) — the four * original lines never change shape, and a reused base still reads `base-hit=true` * (it was restored without a capture) while staying auditable in the outputs. */ export declare function ciOutputLines(baseHit: boolean, headHit: boolean, baseCaptureFailed?: boolean, baseRestoredFromAncestorSha?: string): string[];