export declare const WORKSPACE_CONFIG_PATH: string; export type WorkspaceCheckResult = { kind: 'ok'; coreVersion: string; } | { kind: 'invalid-schema'; reason: string; } | { kind: 'missing'; }; export declare function checkWorkspace(cwd: string): WorkspaceCheckResult; /** * Standard precondition gate for command entry points. Writes a stable * error shape to stdout (JSON) or stderr (prose), and returns * the exit code to use — null when the check passed and the command * should proceed. * * Caller passes `json: true` when the command's --json output is on, so * a precondition failure still produces a parseable line. */ export declare function enforceWorkspace(cwd: string, opts: { json: boolean; }): number | null;