import type { Middleware } from "./types.js"; /** Public API contract for log format. */ export type LogFormat = "combined" | "common" | "dev" | "short" | "tiny" | "json"; /** Options accepted by logger. */ export interface LoggerOptions { format?: LogFormat; skip?: (req: Request) => boolean; log?: (message: string) => void; } /** * Strip CR/LF/tab/other control characters and cap length before a user-controlled * header value is written to a log entry. Prevents log injection (CWE-117). * * Exported for direct unit testing — Deno's `Request` constructor rejects CR/LF * in header values, so the helper must be tested without going through `Request`. */ export declare function sanitizeHeaderForLog(value: string): string; /** Create request logging middleware. */ export declare function logger(options?: LoggerOptions): Middleware; /** Create development request logging middleware. */ export declare function devLogger(): Middleware; /** Create production request logging middleware. */ export declare function prodLogger(): Middleware; //# sourceMappingURL=logger.d.ts.map