import type { RequestHandler, ErrorRequestHandler } from 'express';
import type { Histogram } from '@opentelemetry/api';
import type { AnyServiceLocals, ServiceExpress, ServiceLocals } from '../types.js';
import type { ConfigurationSchema } from '../config/schema.js';
export declare function loggerMiddleware<SLocals extends AnyServiceLocals = ServiceLocals<ConfigurationSchema>>(app: ServiceExpress<SLocals>, histogram: Histogram, config?: ConfigurationSchema['logging']): RequestHandler;
export declare function errorHandlerMiddleware<SLocals extends AnyServiceLocals = ServiceLocals<ConfigurationSchema>>(app: ServiceExpress<SLocals>, histogram: Histogram, unnest?: boolean, returnError?: boolean): ErrorRequestHandler<import("node_modules/@types/express-serve-static-core/index.js").ParamsDictionary, any, any, import("node_modules/@types/qs/index.js").ParsedQs, Record<string, any>>;
export declare function notFoundMiddleware(): RequestHandler;
