import type { ConnectionId, TunnelId, TunnelStreamId } from '../common.js'; import type { Out } from '../out/index.js'; export type InLogContext = { type: 'in'; method?: 'connect' | 'request'; connection?: ConnectionId; tunnel?: TunnelId; tunnelAlias?: string; stream?: TunnelStreamId; host?: string; decrypted?: boolean; }; export type OutLogContext = { type: 'out'; tunnelAlias?: string; tunnel?: Out.TunnelId; stream?: TunnelStreamId; host?: string; }; export type LogContext = InLogContext | OutLogContext | 'proxy' | 'tunnel-server' | 'router' | 'geolite2' | 'web' | 'ddns'; export type LogLevel = 'debug' | 'info' | 'warn' | 'error'; export declare namespace Logs { const debug: (context: LogContext, ...args: unknown[]) => void; const info: (context: LogContext, ...args: unknown[]) => void; const warn: (context: LogContext, ...args: unknown[]) => void; const error: (context: LogContext, ...args: unknown[]) => void; }