/**
 * Extracted HTTP handler logic for the AgentVault plugin.
 *
 * These handlers are shared between:
 * 1. The self-managed HTTP server in channel.ts (legacy/fallback path)
 * 2. OpenClaw's registerHttpRoute() managed routes (new path)
 *
 * Both entry points call the same handler functions, ensuring consistent
 * behavior regardless of how the route is served.
 */
import type { SecureChannel } from "./channel.js";
export interface HandlerResult {
    status: number;
    body: Record<string, unknown>;
}
/**
 * Handle POST /send — send a message (text, file, or room).
 *
 * Routing: explicit target fields only — no silent lastInboundRoomId fallback.
 * - hub_address / a2a_address / channel_id → A2A
 * - room_id → room
 * - target: "context" → resolve from lastInboundRoomId (opt-in)
 * - No target fields → owner (the breaking fix)
 */
export declare function handleSendRequest(parsed: Record<string, unknown>, channel: SecureChannel): Promise<HandlerResult>;
/**
 * Handle POST /action — send an action confirmation.
 */
export declare function handleActionRequest(parsed: Record<string, unknown>, channel: SecureChannel): Promise<HandlerResult>;
/**
 * Handle POST /decision — send a decision request to the owner.
 */
export declare function handleDecisionRequest(parsed: Record<string, unknown>, channel: SecureChannel): Promise<HandlerResult>;
/**
 * Handle GET /status — return channel health info.
 */
export declare function handleStatusRequest(channel: SecureChannel): HandlerResult;
/**
 * Handle GET /targets — return available delivery destinations.
 */
export declare function handleTargetsRequest(channel: SecureChannel): HandlerResult;
/**
 * Handle GET /trust — return the agent's current Trust Gate token state.
 */
export declare function handleTrustRequest(channel: SecureChannel): HandlerResult;
/**
 * Handle GET /mcp-config — return MCP connection config for this agent.
 *
 * Returns JSON suitable for adding to Claude Code, Cursor, or other MCP host
 * configuration files.
 */
export declare function handleMcpConfigRequest(agentName: string, port: number, mcpSkillCount: number): HandlerResult;
//# sourceMappingURL=http-handlers.d.ts.map