UNPKG

perf-lens

Version:

AI-powered frontend performance optimizer

17 lines 612 B
import { AIClient } from '../ai/client.js'; import type { AIModelConfig } from '../types/config.js'; /** * Saves the Anthropic API key to ~/.perf-lens/config.json */ export declare function setApiKey(key: string): void; /** * Resolves the Anthropic API key: PERF_LENS_ANTHROPIC_API_KEY, then * ANTHROPIC_API_KEY, then the saved config file. */ export declare function getApiKey(): string | undefined; /** * Creates the AI client used for all analysis. * @throws {Error} If no API key is configured */ export declare function createModel(config?: AIModelConfig): AIClient; //# sourceMappingURL=ai.d.ts.map