import type { SpecFormatVersion } from '../../types/index.js';
/**
 * Returns the spec_format_version detected from a frontmatter object.
 * Missing field => '0.x'. Anything else must match the SpecFormatVersion enum.
 *
 * @pure — no I/O.
 */
export declare function detectSpecFormatVersion(frontmatter: Record<string, unknown>): SpecFormatVersion;
/**
 * Pure function that, given raw spec.md content, returns either the original
 * content (if already at format 1.0 and idempotent) or the migrated content
 * with `spec_format_version`, `spec_version`, and an initial `history` entry.
 *
 * Running this function twice on the same input is guaranteed to return
 * `{ migrated: false }` on the second call.
 */
export declare function migrateFrontmatterToCurrentFormat(content: string, opts: {
    sessionId: string;
}): {
    content: string;
    migrated: boolean;
};
//# sourceMappingURL=migrate-format.d.ts.map