/** * Extract a value from an object using a simple JSONPath-like dotted path. * Supports paths like "$.foo.bar", "$.items[0].name", "foo.bar". */ export declare function extractJsonPath(obj: unknown, path: string): unknown; export interface ParsedOutput { content: string; usage?: { promptTokens: number; completionTokens: number; totalTokens: number; }; } /** * Parse plain text output — trim whitespace, return raw text. */ export declare function parseTextOutput(stdout: string): ParsedOutput; /** * Parse JSON output, extracting content via an optional JSONPath. */ export declare function parseJsonOutput(stdout: string, responsePath?: string, usagePath?: string): ParsedOutput; /** * Parse JSONL (newline-delimited JSON) output. * Finds the last line containing a result/message event. */ export declare function parseJsonlOutput(stdout: string, responsePath?: string): ParsedOutput; //# sourceMappingURL=output-parsers.d.ts.map