import type { CDPStackFrame, LogLevel } from "./types.js"; export type EventLevel = Exclude; export interface RawLogLine { ts: Date; level: EventLevel; pid: number; tid?: number; tag: string; message: string; subject?: string; process?: string; raw: string; } export type EventKind = "crash" | "anr" | "exception" | "lifecycle" | "message"; export interface LogEvent { id: string; source: "native" | "js"; deviceKey: string; deviceName: string; ts: Date; level: EventLevel; kind: EventKind; title: string; owner?: string; lineCount: number; byteSize: number; fingerprint: string; lines: RawLogLine[]; stackTrace?: CDPStackFrame[]; } export type DraftEvent = Omit; export interface AppIdentity { deviceKey: string; platform: "ios" | "android"; appId: string; pid?: number; processName?: string; } export declare const LEVEL_RANK: Record; export declare const MIN_LEVEL_CHOICES: readonly ["debug", "log", "info", "warn", "error", "fatal"]; export declare function fingerprintEvent(lines: RawLogLine[], deviceKey: string): string; export declare class NativeLogBuffer { private events; private seen; private lastTs; private maxSize; private static readonly SEEN_RETENTION_MULTIPLE; constructor(maxSize?: number); ingest(drafts: DraftEvent[]): LogEvent[]; list(): LogEvent[]; get(id: string): LogEvent | undefined; get seenSize(): number; clear(): number; get watermark(): Date | undefined; get size(): number; } export declare const nativeLogBuffers: Map; export declare function getNativeLogBuffer(deviceKey: string): NativeLogBuffer; export declare function findNativeEvent(id: string): LogEvent | undefined; export declare function __resetNativeLogBuffers(): void; type JsResolver = (id: string) => LogEvent | undefined; export declare function registerJsEventResolver(fn: JsResolver): void; export declare function findLogEvent(id: string): LogEvent | undefined; export {}; //# sourceMappingURL=logEvents.d.ts.map