import type { MessageChunk } from "../chat-stream/interfaces"; import type { Task, ServiceFlowRun, ActivityWithFlow, ConversationError, Job, PlanStep } from "../shared/interfaces"; export interface FlatChunkOptions { flowMap?: Map; activityMap?: Map; skipActivitySubTasks?: boolean; enablePlan?: boolean; rootTaskId?: string; expandAskUser?: boolean; } export interface ActiveAskUser { task?: Task; parentJob?: Job; parentTask: Task; } export declare function getFlatChunks(tasks: Task[], errors: ConversationError[], options?: FlatChunkOptions): { /** Message chunks, excluding those from skipped subtasks */ chunks: MessageChunk[]; /** All jobs including those nested within subtasks */ jobMap: Map; /** Map of jobId to plan step, if plan is available */ planMap: Map; /** The active askUser chunk, if any */ activeAskUser: ActiveAskUser | null; };