import { type CliSpecV4 } from './fsm-types.js';
export interface FsmLoadOk {
    ok: true;
    spec: CliSpecV4;
    sourcePath: string;
}
export interface FsmLoadErr {
    ok: false;
    errors: string[];
    sourcePath: string;
}
export declare function loadFsmSpec(sourcePath: string): FsmLoadOk | FsmLoadErr;
/** Pure validator — usable from a "validate before save" API in the panel. */
export declare function validateFsmSpec(raw: unknown): string[];
