/** Shared JSON wire for the runtime log stream. */ /** Host endpoint that returns the log snapshot and live append frames. */ export declare const LOG_EVENTS_ENDPOINT = "/dsh-logger-panel/logs/events"; /** Host endpoint that pages older records back from the rotated JSONL files. */ export declare const LOG_HISTORY_ENDPOINT = "/dsh-logger-panel/logs/history"; /** One formatted Cordis logger message safe for JSON and text rendering. */ export interface LogRecord { /** Monotonic Cordis logger sequence number. */ sn: number; /** Unix timestamp in milliseconds. */ ts: number; /** Logger name derived from the emitting plugin fiber. */ name: string; /** Cordis severity name. */ type: 'error' | 'info' | 'warn' | 'debug'; /** Cordis numeric severity. */ level: number; /** Plain-text formatted message with no ANSI or HTML. */ content: string; } /** Current Host-side retention and file-writer state. */ export interface LogStreamStatus { /** Number of records currently retained for a connecting browser. */ retained: number; /** Records omitted because the file-write queue was full or failed. */ diskDropped: number; /** Active JSONL filename, without the private absolute directory. */ fileName?: string; /** File persistence state. */ disk: 'active' | 'failed' | 'closed'; /** Stable failure text when file persistence stopped. */ diskError?: string; /** History page size the browser should request. */ historyPageSize?: number; } /** First frame sent to each browser connection. */ export interface LogSnapshotFrame { type: 'snapshot'; records: LogRecord[]; status: LogStreamStatus; } /** Batched records and status updates sent after the snapshot. */ export interface LogAppendFrame { type: 'append'; records: LogRecord[]; status: LogStreamStatus; } /** Merge-extensible runtime log stream frame. */ export type LogStreamFrame = LogSnapshotFrame | LogAppendFrame; /** One page of records read back from the JSONL files, ascending in time. */ export interface LogHistoryResponse { /** Records strictly older than the requested boundary, oldest first. */ records: LogRecord[]; /** Opaque cursor for the next older page; absent when no older records exist. */ nextCursor?: string; } /** True when the value is a complete runtime log record. */ export declare function isLogRecord(value: unknown): value is LogRecord; /** True when the value is a parsed history page. */ export declare function isLogHistoryResponse(value: unknown): value is LogHistoryResponse;