import { IncomingMessage, ServerResponse } from "http"; import { Counter, Histogram } from "prom-client"; import { Next } from "./helpers"; export declare const requestCounter: Counter<"code" | "path" | "method">; export declare const requestTimer: Histogram<"path" | "method">; export declare function createMetricsMiddleware(opts?: { trackAllFoundPaths?: boolean; }): (req: IncomingMessage & { routePath?: string; }, res: ServerResponse, next?: Next) => void;