import type { ProviderUsageSnapshot } from '../../core/models/response.js'; export declare function tryExtractTextFromStreamJsonLine(line: string): string | undefined; export declare function tryExtractThinkingFromStreamJsonLine(line: string): string | undefined; export interface StreamJsonToolUse { readonly tool: string; readonly id: string; readonly input: Record; } export declare function tryExtractToolUseFromStreamJsonLine(line: string): StreamJsonToolUse[]; export interface StreamJsonToolResult { readonly id: string; readonly content: string; readonly isError: boolean; } export declare function tryExtractToolResultFromStreamJsonLine(line: string): StreamJsonToolResult[]; /** * stream-json の 1 行から Claude CLI の rate limit 通知を取り出す。 * * 見るのは assistant イベントの text 全体と、result イベントの `result` / `errors[]` の * 各要素だけ。tool_result(user イベント)や JSON 以外の行は見ない。ファイル内容や * 引用に同じ語が含まれていても rate limit と誤検知しないため (#1674)。 */ export declare function tryExtractRateLimitNoticeFromStreamJsonLine(line: string): string | undefined; export declare function findRateLimitNoticeInStdout(stdout: string | undefined): string | undefined; export declare function tryExtractSessionIdFromStreamJsonLine(line: string): string | undefined; export interface StreamJsonStdoutResult { content: string; displayText: string; hasResult: boolean; success: boolean; error?: string; structuredOutput?: Record; providerUsage?: ProviderUsageSnapshot; } export declare function aggregateResultFromStdout(stdout: string): StreamJsonStdoutResult; export declare function aggregateContentFromStdout(stdout: string): string; export declare function extractSessionIdFromStdout(stdout: string): string | undefined; //# sourceMappingURL=stream-json-lines.d.ts.map