import type { SubagentHandleImpl } from '../../subagent/handle.js'; import type { ToolResult } from '../types.js'; export interface ProgressEventPayload { message: string; phase?: string; metadata?: Record; } export declare const PROGRESS_RING_CAPACITY = 20; export declare const PROGRESS_MAX_MESSAGE_BYTES = 2048; export declare function formatProgressEvent(payload: ProgressEventPayload, subagentId: string): string; export declare function createEmitProgressHandler(handle: SubagentHandleImpl, parentQueueFn: (text: string) => void, parentAbortSignal: AbortSignal | undefined): (input: unknown, _signal: AbortSignal) => Promise;