/**
 * Error handling utilities for The Order services
 */
import { FastifyError, FastifyReply, FastifyRequest } from 'fastify';
/**
 * Custom application error class
 */
export declare class AppError extends Error {
    statusCode: number;
    code: string;
    details?: unknown | undefined;
    constructor(statusCode: number, code: string, message: string, details?: unknown | undefined);
}
/**
 * Global error handler for Fastify
 */
export declare function errorHandler(error: FastifyError, request: FastifyRequest, reply: FastifyReply): Promise<void>;
/**
 * Create a standardized error response
 */
export declare function createErrorResponse(statusCode: number, code: string, message: string, details?: unknown): AppError;
//# sourceMappingURL=error-handler.d.ts.map