export interface StructuredErrorPayload { command: string; phase: string; metadataKind: string; apiName?: string; reason: string; detail?: string; } export declare const EXIT_CODE_GENERAL = 1; export declare const EXIT_CODE_CONTRACT_CONFLICT = 2; export declare const EXIT_CODE_PERMISSION = 3; export declare function exitCodeForReason(reason: string): number; export declare function emitStructuredError(payload: StructuredErrorPayload): void; export declare function setDebugEnabled(enabled: boolean): void; export declare function isDebugEnabled(): boolean; export declare function debugPageAction(metadataKind: string, action: 'fetch' | 'write' | 'skip' | 'update' | 'insert' | 'delete', apiName: string): void;