/** * Action Executor - Executes ATR response actions via platform adapters. * * Deduplicates actions, sorts by priority, and delegates execution * to a PlatformAdapter. Handles per-action errors so one failure * does not block the rest. * * @module agent-threat-rules/action-executor */ import type { ActionResult, ExecutionContext, PlatformAdapter } from "./types.js"; export interface ActionExecutorConfig { readonly adapter: PlatformAdapter; readonly dryRun?: boolean; readonly onActionComplete?: (result: ActionResult) => void; } export declare class ActionExecutor { private readonly adapter; private readonly dryRun; private readonly onActionComplete?; constructor(config: ActionExecutorConfig); /** * Execute all actions from the verdict context. * * Actions are deduplicated, sorted by priority, and executed * sequentially. Each action is wrapped in try/catch so a single * failure does not prevent subsequent actions from running. * * Returns a frozen array of ActionResult. */ execute(context: ExecutionContext): Promise; /** * Deduplicate actions and sort by priority (highest priority first). */ private deduplicateAndSort; /** * Execute a single action, returning a result even on failure. */ private executeOne; /** Get the adapter name for diagnostics */ getAdapterName(): string; /** Check if dry-run mode is enabled */ isDryRun(): boolean; } //# sourceMappingURL=action-executor.d.ts.map