import type { Logger } from "../../../logging/types"; export interface RequestLogContext { requestId: string; kind: string; modelId: string | undefined; } /** * Wraps `logger` so every emit is prefixed with * `[request-lifecycle requestId= modelId=] ` * (the `modelId=...` segment is dropped when absent). The wrapper is a * thin shim: `setLevel` / `getLevel` / `addTransport` / `setConsoleOutput` * pass through to the underlying logger, and transport callbacks receive * the prefixed message. * * @example * await using ctx = await registry.begin({ requestId, kind: "completion", modelId }); * const log = withRequestContext(getServerLogger(), ctx); * log.info("decoding token 7"); * // → "[request-lifecycle completion requestId= modelId=] decoding token 7" */ export declare function withRequestContext(logger: Logger, ctx: RequestLogContext): Logger; //# sourceMappingURL=with-request-context.d.ts.map