import type { ResponseFactory } from '@chubbyts/chubbyts-http-types/dist/message-factory';
import type { Middleware } from '@chubbyts/chubbyts-http-types/dist/middleware';
import type { Logger } from '@chubbyts/chubbyts-log-types/dist/log';
import type { MapToHttpError } from '@chubbyts/chubbyts-http-error/dist/http-error';
/**
 * ```ts
 * import type { Middleware } from '@chubbyts/chubbyts-http-types/dist/middleware';
 * import type { ResponseFactory } from '@chubbyts/chubbyts-http-types/dist/message-factory';
 * import { createErrorMiddleware } from '@chubbyts/chubbyts-framework/dist/middleware/error-middleware';
 *
 * const responseFactory: ResponseFactory = ...;
 *
 * const errorMiddleware: Middleware = createErrorMiddleware(responseFactory);
 * ```
 */
export declare const createErrorMiddleware: (responseFactory: ResponseFactory, debug?: boolean, logger?: Logger, mapToHttpError?: MapToHttpError) => Middleware;
