import type { PackageManager } from "../utils/packageManager"; export type PatchBackup = { file: string; /** `null` when the file did not exist before patches were applied. */ content: string | null; }; export type FeatureArtifacts = { copiedFiles: string[]; patchBackups: PatchBackup[]; }; export type FeatureEntry = { id: string; version: string; addedAt: string; artifacts?: FeatureArtifacts; }; export type IrwinRegistry = { irwinCliVersion: string; tsRails: string; packageManager?: PackageManager; features: FeatureEntry[]; }; export declare function registryPath(projectRoot: string): string; export declare function readRegistry(projectRoot: string): IrwinRegistry; export declare function writeRegistry(projectRoot: string, registry: IrwinRegistry): void; export declare function isFeatureEnabled(registry: IrwinRegistry, featureId: string): boolean;