import type { LaneRecord } from "../autonomy/lane-tracker.ts"; import type { WorkerResultContract } from "../orchestration/contracts.ts"; import { type CreateWorkerResultContractInput } from "../orchestration/worker-result-adapter.ts"; import type { WorkerLifecycle } from "./worker-lifecycle.ts"; /** * One terminal boundary for every worker execution adapter. It creates the fenced result, commits * it through the durable lifecycle, and returns the event-driven handoff token without owning UI. */ export interface FinalizeWorkerClaimInput extends CreateWorkerResultContractInput { /** Verification dispatch owns the next terminal signal until it reconciles the subject. */ notify?: boolean; } export interface FinalizedWorkerClaim { result: WorkerResultContract; record: LaneRecord; notification?: { notificationId: string; status: "pending" | "delivered"; record: LaneRecord; }; } export declare function finalizeWorkerClaim(lifecycle: WorkerLifecycle, input: FinalizeWorkerClaimInput): FinalizedWorkerClaim; //# sourceMappingURL=worker-terminal-finalizer.d.ts.map