/** * Effect ledger error taxonomy, bound to the v1 exit codes. * * Messages are fixed, reference-only text: they never echo payloads, keys, * vault locators or rejected material. * * @see docs/contracts/effect-ledger.v1.md "CLI and exit codes" */ /** Exit codes pinned by the effect ledger v1 contract. */ export declare const EFFECT_EXIT_CODES: Readonly<{ readonly ok: 0; readonly internal: 1; readonly usage: 2; readonly absent: 3; readonly unknown: 4; readonly conflict: 5; readonly integrity: 6; readonly artifactRootUnavailable: 7; }>; export type EffectExitCode = typeof EFFECT_EXIT_CODES[keyof typeof EFFECT_EXIT_CODES]; export type EffectLedgerErrorCode = 'internal' | 'usage' | 'conflict' | 'integrity' | 'artifact-root-unavailable' | 'key-unavailable' | 'lock-timeout' | 'purge-refused'; export declare class EffectLedgerError extends Error { readonly code: EffectLedgerErrorCode; readonly reason?: string | undefined; readonly exitCode: EffectExitCode; constructor(code: EffectLedgerErrorCode, message: string, reason?: string | undefined); toJSON(): { code: EffectLedgerErrorCode; reason?: string; message: string; exitCode: EffectExitCode; }; } export declare const usageError: (message: string, reason?: string) => EffectLedgerError; export declare const integrityError: (reason: string, message?: string) => EffectLedgerError; export declare const conflictError: (message?: string) => EffectLedgerError; //# sourceMappingURL=errors.d.ts.map