import { Fo as TaskRecord, Ja as DetachedTaskFinalizeParams, Ya as DetachedTaskLifecycleRuntime, ea as AgentHarnessTaskRuntimeScope, ss as AgentInternalEvent } from "./types-VTSyQW4p.js"; import { t as DeliveryContext } from "./delivery-context.types-CMuLXJxD.js"; import { t as SubagentAnnounceDeliveryResult } from "./subagent-announce-dispatch-QNPdft6E.js"; //#region src/agents/subagent-announce-delivery.d.ts declare function deliverSubagentAnnouncement(params: { requesterSessionKey: string; announceId?: string; triggerMessage: string; steerMessage: string; internalEvents?: AgentInternalEvent[]; summaryLine?: string; requesterSessionOrigin?: DeliveryContext; requesterOrigin?: DeliveryContext; completionDirectOrigin?: DeliveryContext; directOrigin?: DeliveryContext; sourceSessionKey?: string; sourceChannel?: string; sourceTool?: string; targetRequesterSessionKey: string; requesterIsSubagent: boolean; expectsCompletionMessage: boolean; bestEffortDeliver?: boolean; directIdempotencyKey: string; signal?: AbortSignal; }): Promise; //#endregion //#region src/tasks/detached-task-runtime.d.ts declare function createRunningTaskRun(...args: Parameters): ReturnType; declare function recordTaskRunProgressByRunId(...args: Parameters): ReturnType; declare function finalizeTaskRunByRunId(params: DetachedTaskFinalizeParams): TaskRecord[]; declare function setDetachedTaskDeliveryStatusByRunId(...args: Parameters): ReturnType; //#endregion //#region src/plugin-sdk/agent-harness-task-runtime.d.ts type AgentHarnessTaskRuntimeId = Parameters[0]["runtime"]; type CreateRunningTaskRunParams = Parameters[0]; type RecordTaskRunProgressParams = Parameters[0]; type FinalizeTaskRunParams = Parameters[0]; type SetDeliveryStatusParams = Parameters[0]; type AgentHarnessTaskRuntimeScopeParams = { runtime: AgentHarnessTaskRuntimeId; scope: AgentHarnessTaskRuntimeScope; taskKind?: string; runIdPrefix?: string; }; type AgentHarnessScopedCreateRunningTaskRunParams = Omit & { runId: string; }; type AgentHarnessScopedRecordTaskRunProgressParams = Omit; type AgentHarnessScopedFinalizeTaskRunParams = Omit; type AgentHarnessScopedSetDeliveryStatusParams = Omit; type AgentHarnessTaskRuntime = { createRunningTaskRun(params: AgentHarnessScopedCreateRunningTaskRunParams): TaskRecord; recordTaskRunProgressByRunId(params: AgentHarnessScopedRecordTaskRunProgressParams): TaskRecord[]; finalizeTaskRunByRunId(params: AgentHarnessScopedFinalizeTaskRunParams): TaskRecord[]; setDetachedTaskDeliveryStatusByRunId(params: AgentHarnessScopedSetDeliveryStatusParams): TaskRecord[]; listTaskRecords(): TaskRecord[]; }; type AgentHarnessCompletionStatus = "succeeded" | "failed" | "cancelled"; type AgentHarnessCompletionDelivery = Awaited>; declare function createAgentHarnessTaskRuntime(params: AgentHarnessTaskRuntimeScopeParams): AgentHarnessTaskRuntime; declare function deliverAgentHarnessTaskCompletion(params: { scope: AgentHarnessTaskRuntimeScope; childSessionKey: string; childSessionId: string; announceId: string; status: AgentHarnessCompletionStatus; statusLabel?: string; result: string; taskLabel?: string; announceType?: string; replyInstruction?: string; signal?: AbortSignal; }): Promise; declare function isDurableAgentHarnessCompletionDelivery(delivery: AgentHarnessCompletionDelivery): boolean; //#endregion export { AgentHarnessCompletionDelivery, AgentHarnessCompletionStatus, AgentHarnessScopedCreateRunningTaskRunParams, AgentHarnessScopedFinalizeTaskRunParams, AgentHarnessScopedRecordTaskRunProgressParams, AgentHarnessScopedSetDeliveryStatusParams, type TaskRecord as AgentHarnessTaskRecord, AgentHarnessTaskRuntime, type AgentHarnessTaskRuntimeScope, AgentHarnessTaskRuntimeScopeParams, createAgentHarnessTaskRuntime, deliverAgentHarnessTaskCompletion, isDurableAgentHarnessCompletionDelivery };