import { type Server as HttpServer } from "node:http"; import { type Context, type Message, type Model, type SimpleStreamOptions } from "@earendil-works/pi-ai"; import type { ServerConfig } from "./config.ts"; import { type SessionState, type SessionStaticContext } from "./session-store.ts"; export { loadConfig, type ServerConfig } from "./config.ts"; interface StreamRequestBody { sessionId: string; runId?: string; model: Model; options?: SimpleStreamOptions; staticContext?: SessionStaticContext; ephemeralMessages?: Message[]; contextOverlay?: Message[]; } export declare function buildStreamContext(session: SessionState, body: Pick): Context; export declare function createPiServer(configOverride?: Partial): HttpServer; export declare function startServer(configOverride?: Partial): HttpServer; //# sourceMappingURL=server.d.ts.map