/** * Stable codes for errors thrown by `@asyncapi/diff`. * The library does not call `process.exit`. Callers map these onto their own exit codes. */ export declare enum DiffErrorCode { /** The two documents use different AsyncAPI major versions. */ DIFF_VERSION_MISMATCH = "DIFF_VERSION_MISMATCH", /** `config.override` was provided and is not a plain object. */ DIFF_OVERRIDE_INVALID = "DIFF_OVERRIDE_INVALID" } /** * Thrown when the two documents are different AsyncAPI major versions. * Extends `TypeError` so existing `instanceof TypeError` checks keep working. */ export declare class DiffVersionMismatchError extends TypeError { readonly code: DiffErrorCode; constructor(); } /** * Thrown when override data is present but is not an object. * Extends `TypeError` so existing `instanceof TypeError` checks keep working. */ export declare class DiffOverrideInvalidError extends TypeError { readonly code: DiffErrorCode; constructor(); }