import type { ArgumentsHost, ExceptionFilter } from '@nestjs/common'; /** * Global exception filter that normalizes all errors to a consistent format. * * Response format: * ```json * { * "error": "Error message", * "code": "ERROR_CODE", * "issues": [{ "field": "fieldName", "message": "..." }], * "requestId": "...", * "timestamp": "..." * } * ``` */ export declare class MastraExceptionFilter implements ExceptionFilter { private readonly logger; catch(exception: unknown, host: ArgumentsHost): Promise; /** * Normalize any error type to a consistent format. */ private normalizeError; /** * Get error code from HTTP status. */ private getErrorCode; } //# sourceMappingURL=mastra-exception.filter.d.ts.map