/** * Server Factory * * Creates an SSE server that wraps an Gizmo runtime and streams state updates. */ import type { Action } from "@gizmo-ai/runtime"; import type { Server, ServerConfig } from "./types.ts"; /** * Create an SSE server for an Gizmo runtime * * Usage: * ```typescript * // 1. Create server plugin first * const serverPlugin = createServerPlugin({ slices: ["execution", "agent"] }); * * // 2. Create runtime with plugin * const runtime = createRuntime({ * plugins: [agent, serverPlugin.plugin], * }); * * // 3. Create and start server * const server = createServer({ * runtime, * plugin: serverPlugin, * }); * * server.listen(3000); * ``` */ export declare function createServer, A extends Action>(config: ServerConfig): Server; //# sourceMappingURL=server.d.ts.map