import type { HarnessEvent } from "@claudexor/schema"; type Json = any; export type ClaudeEventParser = (obj: Json, sessionId: string) => HarnessEvent[] | null; export interface ClaudeParserOptions { deniedTools?: Iterable; requiredMcpServers?: Iterable; } /** * Create a stateful per-run parser for Claude `--output-format stream-json`. * State is needed to resolve tool_result blocks (which only carry tool_use_id) * back to the tool name/kind/target of the originating tool_use block, so the * normalized `tool_result` event is self-describing. * Returns `null` for unrecognized top-level shapes (counted as dropped by the * run loop) and `[]` for recognized events that produce nothing. */ export declare function createClaudeParser(opts?: ClaudeParserOptions): ClaudeEventParser; export declare function parseClaudeEvent(obj: Json, sessionId: string): HarnessEvent[] | null; export {}; //# sourceMappingURL=parse.d.ts.map