import type { AgentConfig } from '../types.js'; import type { InputStreamRef } from '../types/permission-types.js'; import type { SubagentHandleImpl } from './handle.js'; export type BindProgressHandle = (handle: SubagentHandleImpl) => void; export declare function wireProgressEvents(config: AgentConfig, enabled: boolean | undefined, parentInputStreamRef: InputStreamRef | undefined, parentAbortSignal: AbortSignal | undefined): BindProgressHandle;