import type { TaskType, TaskParams } from "../types"; import { AIModel } from "./config"; export interface ApiConfig { apiKey: string; endpoint?: string; model?: string | AIModel; } export interface ApiRequestBody { model: string; modelParams: { input: string[]; task?: TaskType; params?: TaskParams; stream?: boolean; }; } export interface StreamingCallbacks { onChunk: (chunk: string, accumulated: string) => void; onComplete: (result: string) => void; onError: (error: Error) => void; } export interface GrammarApiResponse { result: string; fixed: boolean; mod?: { original: string; fixed: string; position: number; type: string; }[]; } //# sourceMappingURL=types.d.ts.map