/** * @module cost-intelligence * @packageBoundary @qulib/core (candidate: @qulib/cost-intelligence) * * This module assembles CostIntelligence from scan run records. * Extraction to @qulib/cost-intelligence is appropriate when: * 1. Cross-scan aggregation is needed (trend analysis across multiple runs) * 2. Pricing tables for multiple LLM providers need to be maintained * 3. A standalone cost reporting dashboard is built * * The CostIntelligenceSchema is already in @qulib/core/schemas and would * remain there (or be duplicated/re-exported) on extraction. */ import type { GapAnalysis } from '../schemas/gap-analysis.schema.js'; import type { CostIntelligence, DeterministicMaturity, LlmUsageRecord, RepeatedAiPattern } from '../schemas/cost-intelligence.schema.js'; export declare function summarizeUsageQuality(records: LlmUsageRecord[]): CostIntelligence['usageSummary']; export declare function buildBudgetWarnings(records: LlmUsageRecord[], maxOutputTokensPerLlmCall: number): string[]; export declare function findRepeatedPromptPatterns(records: LlmUsageRecord[]): RepeatedAiPattern[]; export declare function buildConversionRecommendations(params: { scenarioSource: 'llm' | 'template'; repeatedOperations: RepeatedAiPattern[]; budgetWarnings: string[]; gapCount: number; }): string[]; export declare function computeDeterministicMaturity(params: { mode: GapAnalysis['mode']; coveragePagesScanned: number; gapCount: number; scenarioSource: 'llm' | 'template'; repeatedOperations: RepeatedAiPattern[]; releaseConfidence: number | null; requireHumanReview: boolean; }): DeterministicMaturity; export declare function assembleCostIntelligence(params: { maxOutputTokensPerLlmCall: number; records: LlmUsageRecord[]; partial: Pick; scenarioSource: 'llm' | 'template'; requireHumanReview: boolean; }): CostIntelligence; export declare function costIntelligenceForAuthBlocked(maxOutputTokensPerLlmCall: number): CostIntelligence; //# sourceMappingURL=cost-intelligence.d.ts.map