/** * Spitfire - Main API class * Provides a clean, promise-based API for running LLMs */ import { type SchedulerOptions } from './scheduler/index.js'; import type { GenerateRequest, GenerateResponse, ChatRequest, ChatResponse, EmbedRequest, EmbedResponse, ListResponse, ShowResponse, ProcessResponse, Duration } from './types/index.js'; export interface SpitfireOptions extends SchedulerOptions { } export declare class Spitfire { private scheduler; private modelManager; constructor(options?: SpitfireOptions); /** * Generate text completion */ generate(request: GenerateRequest): Promise; /** * Generate text completion with streaming */ generateStream(request: GenerateRequest): AsyncGenerator; /** * Chat completion */ chat(request: ChatRequest): Promise; /** * Chat completion with streaming */ chatStream(request: ChatRequest): AsyncGenerator; /** * Build chat prompt from messages */ private buildChatPrompt; /** * Get embeddings */ embed(request: EmbedRequest): Promise; /** * List installed models */ list(): Promise; /** * Show model information */ show(model: string): Promise; /** * Get running models */ ps(): ProcessResponse; /** * Check if a model exists */ exists(model: string): Promise; /** * Preload a model (load it into memory) */ preload(model: string, keepAlive?: Duration): Promise; /** * Unload a model from memory */ unload(model: string): Promise; /** * Shutdown and cleanup */ shutdown(): Promise; } //# sourceMappingURL=spitfire.d.ts.map