export type ParsedLogLine = { time?: string; level?: string; subsystem?: string; module?: string; message: string; raw: string; }; /** * Flatten one tslog record into the line we actually write. * * tslog's native shape is hostile to tracing: the message arrives under * positional keys ("0", "1"), the subsystem is a JSON string nested in * `_meta.name`, and every single line repeats hostname/runtime/pid in `_meta`. * You cannot grep it, jq it, or read it. * * The flat shape is one self-describing JSON object per line — stable keys, * message as `msg`, structured metadata merged at the top level so fields like * runId/sessionKey are directly queryable: * * {"ts":"...","level":"info","subsystem":"proactive","msg":"...","runId":"..."} */ export declare function toFlatLogRecord(logObj: Record): Record; export declare function parseLogLine(raw: string): ParsedLogLine | null;