export type ValidationError = { type: 'ValidationError'; message: string; }; export type StorageError = { type: 'StorageError'; message: string; cause?: Error; }; export type WorkflowError = ValidationError | StorageError | { type: 'DomainError'; reason: string; }; export declare const WorkflowError: { validation: (message: string) => WorkflowError; storage: (message: string, cause?: Error) => WorkflowError; domain: (reason: string) => WorkflowError; toString: (error: WorkflowError) => string; }; //# sourceMappingURL=errors.d.ts.map