/** * Generic payload parser/formatter used by `amux hooks handle `. * * Each harness emits a hook payload as JSON on stdin. The default * implementation accepts any JSON object and normalizes a few commonly * used fields (tool_name, tool_input, tool_output, prompt, message, * session_id) into `payload.data`, preserving the full original payload * under `payload.raw` for adapter-specific round-tripping. */ import type { AgentName } from './types.js'; import type { UnifiedHookPayload, UnifiedHookResult } from './hooks.js'; export declare function parseHookPayload(agent: AgentName | string, hookType: string, raw: unknown): UnifiedHookPayload; /** * Format a unified hook result back into the shape most harnesses expect: * a JSON object written to stdout, plus an exit code. * * Convention: * { decision, message?, modifiedInput? } * harnesses that treat exit 2 as "block" will honor the deny path. */ export declare function formatHookResult(_agent: AgentName | string, _hookType: string, result: UnifiedHookResult): { stdout: string; exitCode: number; };