import type { Envelope } from "@sentry/core"; export declare const SOURCE_TYPES: readonly ["browser", "mobile", "server"]; export type SourceType = (typeof SOURCE_TYPES)[number]; export declare const LOG_LEVELS: readonly ["error", "warning", "log", "info", "trace", "debug"]; export type LogLevel = (typeof LOG_LEVELS)[number]; export declare const SOURCE_COLORS: Record string>; export declare const LOG_LEVEL_COLORS: Record string>; /** * Infer the source of an envelope as browser, mobile, or server using multiple signals * Priority order: * 1. Sender User-Agent (from HTTP request header) * 2. Platform & Runtime tags (from event payload) * 3. SDK name (fallback) * * Rules based on https://release-registry.services.sentry.io/sdks */ export declare function inferEnvelopeSource(envelopeHeader: Envelope[0], event?: any): SourceType; /** * Format timestamp as local time HH:MM:SS */ export declare function formatLocalTime(timestamp?: number | string): string; /** * Padding helper for vertical alignment */ export declare function padLabel(label: string, width: number): string; export declare const SOURCE_WIDTH: number; export declare const TYPE_WIDTH: number; /** * Colorize time with dim gray */ export declare function colorizeTime(time: string): string; /** * Colorize source based on envelope source */ export declare function colorizeSource(source: string): string; /** * Colorize event type */ export declare function colorizeType(type: string): string; /** * Format a complete log line with proper alignment and colors */ export declare function formatLogLine(timestamp: number | undefined, source: SourceType, type: string, message: string): string;