/** * Cost Tracking Module * * Centralized cost tracking for ChatToMap. * Used by both CLI users (to understand their own costs) and SaaS (for billing). * * @example * ```typescript * import { CostTracker, estimateProcessingCost, formatEstimate } from 'chat-to-map/costs' * * // Get a cost estimate before processing * const estimate = estimateProcessingCost({ messageCount: 10000 }) * console.log(formatEstimate(estimate)) // "$0.50 - $1.50" * * // Track actual costs during processing * const tracker = new CostTracker() * tracker.addRecords(createAIUsageRecords('gpt-4o-mini', 5000, 1000)) * tracker.addRecord(createGeocodingUsageRecord('places', 50)) * * console.log(tracker.getTotalCostCents()) // 25 * ``` * * @module */ export type { AIProvider, CostEstimate, CostEstimateInput, EmbeddingProvider, GeocodingProvider, ImageProvider, MeteredResource, MicroDollars, ModelPricing, Provider, SearchProvider, UsageRecord, UsageSummary } from './types'; export { AI_MODEL_PRICING, DEFAULT_AI_MODELS, DEFAULT_EMBEDDING_MODELS, DEFAULT_GEOCODING_PROVIDER, EMBEDDING_MODEL_PRICING, GOOGLE_MAPS_PRICING, GOOGLE_SEARCH_PRICING, getAIModelPricing, getDefaultAIModel, getDefaultEmbeddingModel, getEmbeddingModelPricing, IMAGE_SERVICE_PRICING, listAIModels, listEmbeddingModels } from './pricing'; export { calculateAICompletionCost, calculateAIInputCost, calculateAIOutputCost, calculateEmbeddingCost, calculateGeocodingCost, calculateGoogleSearchCost, calculatePexelsCost, calculatePixabayCost, calculatePlacesLookupCost, calculatePlacesPhotoCost, centsToMicros, createAIUsageRecords, createEmbeddingUsageRecord, createGeocodingUsageRecord, createGoogleSearchUsageRecord, createImageUsageRecord, formatMicrosAsDollars, groupByProvider, groupByResource, microsToCents, microsToDollars, sumUsageCosts } from './calculator'; export { ESTIMATION_DEFAULTS, estimateActivityCount, estimateGeocodableCount, estimateMessageTokens, estimateProcessingCost, estimateTokenCount, formatEstimate, formatEstimateDetailed, quickEstimateCents } from './estimator'; export { CostTracker, createCostTracker } from './tracker'; //# sourceMappingURL=index.d.ts.map