/** * Stdio Platform Adapter - Adapter for Claude Code hook integration. * * Block actions write JSON responses to an internal buffer that can * be flushed to stdout. Alert and snapshot actions log to stderr * to avoid interfering with the JSON protocol on stdout. * * @module agent-threat-rules/adapters/stdio-adapter */ import type { ActionResult, ExecutionContext, PlatformAdapter } from "../types.js"; export declare class StdioAdapter implements PlatformAdapter { readonly name = "stdio"; private readonly responseBuffer; /** * Get buffered responses and clear the buffer. * Returns a frozen copy. */ flushResponses(): readonly unknown[]; blockInput(ctx: ExecutionContext): Promise; blockOutput(ctx: ExecutionContext): Promise; blockTool(ctx: ExecutionContext): Promise; quarantineSession(ctx: ExecutionContext): Promise; resetContext(ctx: ExecutionContext): Promise; alert(ctx: ExecutionContext): Promise; shadow(ctx: ExecutionContext): Promise; snapshot(ctx: ExecutionContext): Promise; escalate(ctx: ExecutionContext): Promise; reducePermissions(ctx: ExecutionContext): Promise; killAgent(ctx: ExecutionContext): Promise; } //# sourceMappingURL=stdio-adapter.d.ts.map