export type LogLevel = 'debug' | 'info' | 'warn' | 'error'; export type BrowserLogType = 'console' | 'network' | 'interaction' | 'navigation' | 'performance' | 'visibility' | 'resource'; export type LogSource = 'browser' | 'worker' | 'github' | 'collector'; export interface LogEntry { level: LogLevel; msg: string; ts?: string; source?: LogSource; meta?: LogMetadata; } export interface LogMetadata { type?: BrowserLogType; sessionId?: string; url?: string; stack?: string; method?: string; requestUrl?: string; status?: number; duration?: number; size?: number; error?: string; event?: 'click' | 'submit' | 'input' | 'change'; target?: string; value?: string; from?: string; to?: string; trigger?: 'load' | 'pushState' | 'popstate' | 'replaceState' | 'hashchange'; metric?: 'LCP' | 'FID' | 'CLS' | 'TTFB' | 'longTask'; rating?: 'good' | 'needs-improvement' | 'poor'; [key: string]: unknown; } export interface SdkConfig { workerUrl?: string; endpoint?: string; apiKey?: string; batchInterval?: number; maxBatchSize?: number; maxRetries?: number; retryBaseDelay?: number; debug?: boolean; logLevel?: LogLevel; captureConsole?: boolean; captureNetwork?: boolean; captureInteractions?: boolean; captureNavigation?: boolean; capturePerformance?: boolean; captureVisibility?: boolean; captureResources?: boolean; } export type StackScopeOptions = SdkConfig; export interface Logger { debug(msg: string, meta?: Record): void; info(msg: string, meta?: Record): void; warn(msg: string, meta?: Record): void; error(msg: string, meta?: Record): void; } export interface PerformanceMetrics { metric: string; value: number; unit?: string; rating?: 'good' | 'needs-improvement' | 'poor'; } export interface UserAction { action: string; details?: Record; timestamp?: string; sessionId?: string; } export interface ApiCallDetails { url: string; method: string; status: number; duration: number; meta?: Record; } //# sourceMappingURL=types.d.ts.map