/** * Config migration system for Nori Profiles * * Handles versioned migrations to transform config from old formats to new formats. * Migrations are applied in semver order during installation. */ import type { Config } from "../../cli/config.js"; /** * Migration definition type */ export type Migration = { version: string; name: string; migrate: (args: { config: Record; installDir: string; }) => Promise>; }; /** * Ordered list of migrations * Each migration transforms config from the previous version to its version */ export declare const migrations: Array; /** * Apply all applicable migrations to a config * * @param args - Migration arguments * @param args.previousVersion - The version the config is currently at * @param args.config - The config to migrate * @param args.installDir - Installation directory for file system operations * * @throws Error if previousVersion is null, undefined, empty, or invalid semver * * @returns The migrated config */ export declare const migrate: (args: { previousVersion: string; config: Record; installDir: string; }) => Promise; //# sourceMappingURL=migration.d.ts.map