import { type OrgDef } from './types.js'; /** The structural invariants the runtime assumes but the Zod schema can't * express: unique role ids, exactly one root (reports_to: null), every * non-root's reports_to resolving to another role (and not itself), and a * parseable schedule. Shared by `org validate` (validateAction) and * `migrateOrgFile`, which refuses to write a migrated config that still * fails these checks. */ export declare function checkOrgStructure(def: Pick): string[]; export declare function migrateOrgConfig(raw: Record): { def: Record; dropped: string[]; notes: string[]; }; /** Reads `cfgPath`, migrates it, and (unless already v2) backs up the * original to `backupPath` and overwrites `cfgPath` with the migrated def. * Throws on an unmigratable config (schema failure inside migrateOrgConfig, * or a structural violation caught here) — caller decides how to report it. * Refuses to write when the migrated def fails checkOrgStructure, so a v1 * config with e.g. all-null reports_to fails cleanly instead of silently * writing a config the runtime can't start. */ export declare function migrateOrgFile(cfgPath: string, backupPath: string): { status: 'migrated' | 'already-v2'; dropped: string[]; notes: string[]; }; //# sourceMappingURL=migrate.d.ts.map