/** * Spitfire HTTP Server * Ollama-compatible REST API */ import { Scheduler, type SchedulerOptions } from '../scheduler/index.js'; export interface ServerOptions extends SchedulerOptions { host?: string; port?: number; cors?: boolean; } export declare class SpitfireServer { private app; private scheduler; private options; constructor(options?: ServerOptions); private setupRoutes; private setupErrorHandling; /** * Handle /api/generate endpoint */ private handleGenerate; /** * Handle /api/chat endpoint */ private handleChat; /** * Build chat prompt from messages */ private buildChatPrompt; /** * Handle /api/embed endpoint */ private handleEmbed; /** * Handle /api/tags and /api/list endpoints */ private handleList; /** * Handle /api/show endpoint */ private handleShow; /** * Handle /api/ps endpoint */ private handlePs; /** * Get the scheduler */ getScheduler(): Scheduler; /** * Start the server */ start(): Promise; /** * Stop the server */ stop(): Promise; } /** * Create and start a Spitfire server */ export declare function createServer(options?: ServerOptions): Promise; //# sourceMappingURL=server.d.ts.map