import type { TokenUsage } from "../types.js"; export interface ParsedSubagentOutput { output: string; activityLog?: string; recoveryContext?: string; usage?: TokenUsage; costUsd: number | null; malformedLines: string[]; } export interface SubagentParseState { messageText: string; currentText: string; activityBlocks: ActivityBlock[]; blockIndexes: Map; thinkingLengths: Map; malformedLines: string[]; usage?: TokenUsage; costUsd: number | null; toolCallCount: number; turnCount: number; recoveryBlocks: string[]; recoveryDescriptors: Map; } interface ActivityBlock { key: string; label: string; content: string; } export declare function parseSubagentNdjson(text: string): ParsedSubagentOutput; export declare function parsedOutputFromState(state: SubagentParseState): ParsedSubagentOutput; export declare function createParseState(): SubagentParseState; export declare function applySubagentLine(state: SubagentParseState, line: string): void; export declare function outputFromState(state: SubagentParseState): string; export declare function activityLogFromState(state: SubagentParseState): string; export declare function recoveryContextFromState(state: SubagentParseState): string; export {};