/** * OpenKernel — MOLTFED Adapter (InfiniBot interop) * * Translates infinicode's NEUTRAL federation shapes into the message shapes * InfiniBot already consumes, so an infinicode node lights up InfiniBot's * neural-mesh map + hardware panels with ZERO InfiniBot changes: * * NodeStatus[] → nodes.status { ts, nodes:[…] } * HardwareSnapshot → hardware.snapshot (same shape — passthrough) * StreamFrame (ev) → agent broadcast event (activity panel / map animation) * * This module only builds payloads. The actual WebSocket connector that logs * into an InfiniBot gateway and ships these is added in the integration step; * keeping the mapping here means that connector is a thin transport shim. */ import type { HardwareSnapshot, NodeStatus, StreamFrame } from './types.js'; /** InfiniBot `nodes.status` / `node.list` response shape. */ export declare function toNodesStatus(statuses: NodeStatus[]): { ts: number; nodes: Array>; }; /** InfiniBot `hardware.snapshot` payload (shape already matches). */ export declare function toHardwareSnapshot(nodeId: string, hw: HardwareSnapshot): Record; /** Map a compact activity/routing frame to an InfiniBot-style `agent` event. */ export declare function toAgentEvent(f: StreamFrame): Record | null; /** Build the full set of InfiniBot-bound messages for a periodic push. */ export declare function buildMoltfedBatch(statuses: NodeStatus[], selfId: string, hw?: HardwareSnapshot): Array<{ method: string; params: unknown; }>;