export declare const OBS_DIRNAME = ".hayagriva-llm"; export declare const RUNS_JSONL = "runs.jsonl"; export declare const LAST_RUN_JSON = "last-run.json"; export interface AiCallAnalytics { step: string; startedAt: string; finishedAt: string; durationMs: number; model: string; systemPromptChars: number; userContentChars: number; responseChars: number; usage?: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }; } export interface GenerateRunAnalytics { id: string; command: 'generate'; cwd: string; startedAt: string; finishedAt?: string; durationMs?: number; ok?: boolean; error?: { message: string; }; node: { version: string; platform: string; arch: string; }; package: { name: string; version: string; description?: string; entryPath: string | null; }; flags: { mode: 'static' | 'ai'; includeSrc: boolean; verbose: boolean; apiKeyProvided: boolean; model: string; freeLlmRouter?: boolean; }; outputs?: { jsonPath: string; txtPath: string; action: 'created' | 'updated'; }; ai?: { calls: AiCallAnalytics[]; totals?: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }; inputChars?: number; batches?: { size: number; batchCount: number; }; }; } export declare function ensureObsDir(cwd: string): string; export declare function newRunId(): string; export declare function writeLastRun(cwd: string, run: GenerateRunAnalytics): void; export declare function appendRunJsonl(cwd: string, run: GenerateRunAnalytics): void; export declare function readRuns(cwd: string, max?: number): GenerateRunAnalytics[]; //# sourceMappingURL=observability.d.ts.map