/** * Copyright (c) 2026 AzerothJS. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * The structural minimum {@link logRequests} writes through: an info line per request, an error * line per 5xx. `@azerothjs/logger`'s Logger satisfies it, and so does any logging library * behind a five-line adapter the application owns. */ export interface RequestLogger { info(message: string, fields?: Record): void; error(message: string, fields?: Record): void; } /** * The standard request-logging observer: one info line per completed request with method, * path, status, and wall time; 5xx log at error level. A correlation id assigned by the * `requestId` edge middleware rides along automatically. Wire it as `observe` on the App. */ export declare function logRequests(logger: RequestLogger): { onComplete(request: Request, response: Response, durationMs: number): void; };