export interface JsonRpcMessage { id?: number; method?: string; params?: Record; result?: unknown; error?: unknown; } export declare function recordParam(params: Record | undefined, key: string): Record | undefined; export declare function stringParam(params: Record | undefined, key: string): string | undefined; export declare function providerToolCallsFromAppServerItem(item: Record | undefined): Record[]; export interface CodexSubagentSpawnCall { parentToolCallId: string; role?: string; } export interface CodexSubagentSpawnOutput { callId: string; name?: string; subRunId: string; } export interface CodexSubagentSpawnPair { output: CodexSubagentSpawnOutput; spawn: CodexSubagentSpawnCall; } export declare function codexSubagentSpawnCallFromRawResponseItem(item: Record | undefined): CodexSubagentSpawnCall | undefined; export declare function codexSubagentSpawnOutputFromRawResponseItem(item: Record | undefined): CodexSubagentSpawnOutput | undefined; export declare function codexSubagentSpawnPairsFromSessionJsonl(contents: string, turnId: string): CodexSubagentSpawnPair[]; export declare function codexWebSearchesFromSessionJsonl(contents: string, turnId: string): Record[]; export declare function runtimeEventFromAppServerItem(method: string | undefined, item: Record | undefined, runtimeKind: string): Record | undefined; export declare function codexRuntimeEventFromNotification(message: JsonRpcMessage, runtimeKind: string): Record | undefined; export declare function codexReasoningEventFromNotification(message: JsonRpcMessage, runtimeKind: string): Record | undefined; export declare function codexContextStatsFromTokenUsage(tokenUsage: Record | undefined, runtimeKind: string): Record | undefined; export declare function codexSessionStatsFromTurn(turn: Record | undefined, runtimeKind: string): Record | undefined; export declare function providerToolFailuresFromAppServerItem(item: Record | undefined, providerToolsById: Map>, runtimeKind: string): Record[]; export declare function codexSubagentLinkageFromRecord(record: Record | undefined): Record; //# sourceMappingURL=codex-events.d.ts.map