import type { IRequest } from '../http/Request';
import type { IResponse } from '../http/Response';
export { createDefaultMiddlewareFailureBody, type DefaultMiddlewareFailureBody, type MiddlewareFailureBodyInput, } from './MiddlewareFailureBody';
export type MiddlewareFailureContext = Readonly<{
    middleware: string;
    reason: string;
    statusCode: number;
    message: string;
    body: unknown;
    error?: unknown;
    requestId?: string;
}>;
export type MiddlewareFailureResponder = (req: IRequest, res: IResponse, context: MiddlewareFailureContext) => void | Promise<void>;
export declare const defaultMiddlewareFailureResponder: MiddlewareFailureResponder;
export declare const respondWithMiddlewareFailure: (req: IRequest, res: IResponse, responder: MiddlewareFailureResponder | undefined, context: MiddlewareFailureContext) => Promise<void>;
//# sourceMappingURL=MiddlewareFailureResponder.d.ts.map