/**
 * Adapts new backend (v2) response formats to the legacy format
 * expected by existing frontend components.
 */
/**
 * Adapts a v2 `complete` event payload to the legacy `end_response` format.
 *
 * v2 format:  { content, conversation_id, tokens }
 * Legacy format: { answer, conversationId, insightId, controlData, controlType, controls, ... }
 */
export declare function adaptCompleteToLegacy(data: any): any;
/**
 * Adapts a v2 `chunk` event payload to the legacy `response` format.
 *
 * v2 format:  { content: "partial text" }
 * Legacy format: { data: "partial text" }
 */
export declare function adaptChunkToLegacy(data: any): any;
