/** * @module minions-sdk/evolution * Schema evolution utilities — migrate minions when their type schema changes. */ import type { Minion, FieldDefinition } from '../types/index.js'; /** * Migrate a minion from an old schema to a new schema. * * Rules: * - Fields added in new schema: get default value or remain absent * - Fields removed from schema: values move to `_legacy` * - Fields whose type changed: if value doesn't match new type, move to `_legacy` * - Fields made required: if missing, minion is flagged (via validation) * * @param minion - The minion to migrate * @param oldSchema - The previous field definitions * @param newSchema - The new field definitions * @returns The migrated minion */ export declare function migrateMinion(minion: Minion, oldSchema: FieldDefinition[], newSchema: FieldDefinition[]): Minion; //# sourceMappingURL=index.d.ts.map