/** * Migration manifests for Trellis versions * * Each version's migrations are stored in separate JSON files under manifests/ * Format: manifests/{version}.json (e.g., manifests/0.1.9.json) */ import type { ConfigSectionAdded, MigrationItem } from "../types/migration.js"; /** * Get all migrations needed to upgrade from one version to another * * @param fromVersion - Current installed version * @param toVersion - Target version to upgrade to * @returns Array of migration items to apply, in version order */ export declare function getMigrationsForVersion(fromVersion: string, toVersion: string): MigrationItem[]; /** * Check if there are any pending migrations between versions */ export declare function hasPendingMigrations(fromVersion: string, toVersion: string): boolean; /** * Get human-readable summary of pending migrations */ export declare function getMigrationSummary(fromVersion: string, toVersion: string): { renames: number; deletes: number; safeFileDeletes: number; }; /** * Get all registered migration versions */ export declare function getAllMigrationVersions(): string[]; /** * Get ALL migrations from all manifests (regardless of version) * Used for detecting orphaned migrations that should have been applied */ export declare function getAllMigrations(): MigrationItem[]; /** * Clear the manifest cache (useful for testing) */ export declare function clearManifestCache(): void; /** * Collect every `configSectionsAdded` entry from manifests strictly between * `fromVersion` (exclusive) and `toVersion` (inclusive). Used by `update.ts` * to apply additive config.yaml sections that were introduced after the * user's installed version. */ export declare function getConfigSectionsAddedBetween(fromVersion: string, toVersion: string): ConfigSectionAdded[]; /** * Get aggregated metadata for migrations between versions * Returns combined changelog, breaking status, migrate recommendation, and migration guides */ export declare function getMigrationMetadata(fromVersion: string, toVersion: string): { changelog: string[]; breaking: boolean; recommendMigrate: boolean; migrationGuides: { version: string; guide: string; aiInstructions?: string; }[]; }; //# sourceMappingURL=index.d.ts.map