import z from "zod/v4"; import { LLMApiKeySchema, ZodModelConfig } from "../../llm/types"; type ValidConfig = { provider: string; model: string; modelParams: z.infer; }; export declare class DefaultEvalModelService { /** * Gets the default evaluation model for a project */ static fetchDefaultModel(projectId: string): Promise<{ id: string; projectId: string; provider: string; createdAt: Date; updatedAt: Date; model: string; adapter: string; modelParams: import("@prisma/client/runtime/library").JsonValue | null; llmApiKeyId: string; } | null>; /** * Creates or updates a default evaluation model for a project */ static upsertDefaultModel(params: { projectId: string; provider: string; adapter: string; model: string; modelParams?: z.infer; }): Promise<{ id: string; projectId: string; provider: string; createdAt: Date; updatedAt: Date; model: string; adapter: string; modelParams: import("@prisma/client/runtime/library").JsonValue | null; llmApiKeyId: string; }>; /** * Simple validation that can also be used client side * Validates if the provider, model, and model parameters are valid */ static validateModelConfig(config: { provider?: string; model?: string; modelParams?: unknown; }): config is ValidConfig; /** * Validate model config against available API keys * Checks if the provider and model are valid and an API key exists */ static fetchValidModelConfig(projectId: string, provider?: string, model?: string, modelParams?: unknown): Promise<{ valid: true; config: { provider: string; model: string; modelParams?: z.infer; apiKey: z.infer; }; } | { valid: false; error: string; }>; } export {}; //# sourceMappingURL=DefaultEvalModelService.d.ts.map