import type { LTReturn } from '../../types';
import type { InterceptorState } from './types';
/**
 * Handle a workflow that returned { type: 'return' }.
 *
 * Augments milestones for re-runs, then signals the parent
 * orchestrator with the result. The orchestrator is responsible
 * for completing the task and persisting result data.
 *
 * If the result contains a `rounds_exhausted` milestone, an advisory
 * escalation is also created and auto-assigned to the submitting user.
 *
 * Returns the (possibly augmented) result so the caller can
 * return it to the workflow engine.
 */
export declare function handleCompletion(state: InterceptorState, result: LTReturn): Promise<LTReturn>;
