import type { SchemaBase } from './dsl.js'; import type { ImportBase } from './import-base.js'; /** Describes an exception a method can throw. */ export interface ExceptionSchema extends SchemaBase, Omit { type: 'exception'; } export declare function defineException(options: { name: string; from: string; description?: string; }): ExceptionSchema; /** Timeout or unrecoverable I/O failure */ export declare const IOException: ExceptionSchema; /** Business error code carried by the exception*/ export declare const CodeException: ExceptionSchema; /** Business rule violation (maps to 422) */ export declare const BusinessException: ExceptionSchema; /** Anything else — unexpected, carries no business semantics. Rendered as a * plain Error / system exception, no dedicated runtime class. */ export declare const UnexpectedException: ExceptionSchema;