import { IncomingMessage, ServerResponse } from "http"; import { Next } from "./helpers"; interface Logger { info(msg: string): void; warn(msg: string): void; error(msg: string): void; } interface Options { name?: string; warnSlowThreshold?: number; criticalSlowThreshold?: number; } interface LoggableRequest extends IncomingMessage { ip?: string; } export declare function createLoggingMiddleware(logger: Logger, opts?: Options): (req: LoggableRequest, res: ServerResponse, next?: Next) => void; export {};