import type { WireContext, WireMiddleware } from './host.js'; import type { RuntimeObservation } from './enterprise-runtime.js'; export type RuntimeInspectorEntry = { kind: 'observation'; at: number; observation: RuntimeObservation; } | { kind: 'wire'; at: number; direction: WireContext['direction']; method?: string; id?: string | number; frame?: unknown; redacted: boolean; }; export type RuntimeInspectorEntryListener = (entry: RuntimeInspectorEntry) => void; export interface RuntimeInspectorOptions { includeWire?: boolean; redact?: boolean | ((frame: unknown) => unknown); maxEntries?: number; } export interface RuntimeInspector { observe(observation: RuntimeObservation): void; wireMiddleware?: WireMiddleware; entries(): RuntimeInspectorEntry[]; timeline(): RuntimeInspectorEntry[]; onEntry(listener: RuntimeInspectorEntryListener): () => void; clear(): void; toJSONL(): string; } export declare function createRuntimeInspector(options?: RuntimeInspectorOptions): RuntimeInspector;