import type { OpenClawConfig } from "../config/types.openclaw.js"; export type CancelAcpSessionAdmin = (params: { cfg: OpenClawConfig; sessionKey: string; reason: string; }) => Promise; export type KillSubagentRunAdminResult = { found: boolean; killed: boolean; runId?: string; sessionKey?: string; cascadeKilled?: number; cascadeLabels?: string[]; }; export type KillSubagentRunAdmin = (params: { cfg: OpenClawConfig; sessionKey: string; }) => Promise; export type TaskRegistryControlRuntime = { getAcpSessionManager: () => { cancelSession: CancelAcpSessionAdmin; }; killSubagentRunAdmin: KillSubagentRunAdmin; };