import { type LogLevelName } from "../utils/logger/core.js"; /** * Request context for proxy logging. * Stored in AsyncLocalStorage to propagate through the call stack. */ interface ProxyRequestContext { requestId: string; projectSlug?: string; projectId?: string; releaseId?: string; branchId?: string; branchName?: string; domain?: string; environment?: string; } /** * Run a function with proxy request context. * All logs within the function will include the request context fields. */ export declare function runWithProxyRequestContext(context: ProxyRequestContext, fn: () => T): T; export type LogLevel = LogLevelName; declare class ProxyLogger { private log; debug(message: string, context?: Record): void; info(message: string, context?: Record): void; warn(message: string, context?: Record): void; error(message: string, error?: unknown): void; error(message: string, context: Record, error?: unknown): void; /** * Create a child logger with bound context. */ child(context: Record): ChildProxyLogger; } declare class ChildProxyLogger { private parent; private boundContext; constructor(parent: ProxyLogger, boundContext: Record); private merge; debug(message: string, context?: Record): void; info(message: string, context?: Record): void; warn(message: string, context?: Record): void; error(message: string, error?: unknown): void; error(message: string, context: Record, error?: unknown): void; child(context: Record): ChildProxyLogger; } export declare const proxyLogger: ProxyLogger; export {}; //# sourceMappingURL=logger.d.ts.map