import type { EventBus } from "../event-bus.js"; /** Shared with the optional Intercom/subagent companions. */ export declare const SUBAGENT_TERMINAL_ORDERING_BARRIER_EVENT = "subagent:terminal-ordering-barrier"; /** Trusted runner metadata; never inferred from model-provided task IDs or labels. */ export interface TaskCompletionSource { readonly runId: string; readonly intercomTarget: string; } /** Notification delivery owns this wait. It must never reject a runner's execution result. */ export declare function flushTaskCompletionMessages(events: EventBus, source: TaskCompletionSource, completionId: string): Promise; //# sourceMappingURL=completion-ordering.d.ts.map