import { OpenAiCostTrackerSqliteEntry, OpenAiCostTrackerSqliteBucketCost, OpenAiCostTrackerSqliteCostSummary } from "./tracker_sqlite_type"; /** * Helper class for summarizing and printing OpenAI API cost data. */ export declare class OpenAiSqliteCostSummaryHelper { /** * Combine two bucket cost summaries into one, summing their costs and combining their models. The combined bucket will have the * provided combinedBucketId as its bucketId. * * @param combinedBucketId The ID to assign to the combined bucket. * @param summaryBucketA The first bucket to combine. * @param summaryBucketB The second bucket to combine. * @returns The combined bucket cost summary. */ static costSummaryCombineBucket(combinedBucketId: string, summaryBucketA: OpenAiCostTrackerSqliteBucketCost, summaryBucketB: OpenAiCostTrackerSqliteBucketCost): Promise; /** * Group buckets that match the same pattern together to simplify the output and make it easier to read. * * @param summary The original cost summary to group. * @param bucketIdGlobs An array of minimatch patterns to group buckets by. Buckets that match the same pattern will be combined together. * @returns A new cost summary with buckets grouped according to the provided patterns. */ static costSummaryGroup(summary: OpenAiCostTrackerSqliteCostSummary, bucketIdGlobs: string[]): Promise; /** * Sort cost summary by total cost spent in descending order, and within each bucket, sort models by cost spent in descending order * This allows the most expensive buckets and models to be printed first, which can be helpful for quickly identifying where the * most costs are coming from. * * @param originalSummary The original cost summary to sort. * @returns A new cost summary with buckets and models sorted by cost spent in descending order. */ static costSummarySort(originalSummary: OpenAiCostTrackerSqliteCostSummary): Promise; /** * Print cost summary in a formatted, colorized output */ static costSummaryPrint(originalSummary: OpenAiCostTrackerSqliteCostSummary, { colorize }?: { colorize?: boolean; }): Promise; /** * Convert cost tracking records to CSV format */ static recordsToCsv(records: OpenAiCostTrackerSqliteEntry[]): string; }