import type { CodexEventParams } from '../../domain/costs/codex-event-format.js'; import type { NormalizedEvent } from '../normalize/event-types.js'; /** * Translate a Codex JSON-RPC event (method + params) to a NormalizedEvent. * Returns null for events that have no NormalizedEvent counterpart in Phase 1 * (internal/transient or richer than current NormalizedEvent surface). * * Coverage: * item/completed (agentMessage) → assistant_text { text } * account/rateLimits/updated → rate_limit { raw } * thread/error → error { message, fatal:false } * default / commandExecution / fileChange / token-usage / etc. → null * * session_started and turn_complete are synthesized by the adapter wrapper from * non-event sources (sessionId resolution + turn-result reduction), not by this parser. */ export declare function codexEventToNormalized(method: string, params: CodexEventParams): NormalizedEvent | null;