/**
 * @license
 * Copyright 2026 Amodal Labs, Inc.
 * SPDX-License-Identifier: MIT
 */
import type { SessionHistoryRow } from './types';
export interface CostGroup {
    key: string;
    label: string;
    sessions: number;
    inputTokens: number;
    outputTokens: number;
    totalTokens: number;
    cost: number;
    unknownCostSessions: number;
}
export interface CostBucket {
    key: string;
    label: string;
    sessions: number;
    totalTokens: number;
    cost: number;
}
export interface CostSummary {
    totalCost: number;
    totalTokens: number;
    totalInputTokens: number;
    totalOutputTokens: number;
    knownCostSessions: number;
    unknownCostSessions: number;
}
export declare const ALL_SCOPES_KEY = "all";
export declare const DEFAULT_SCOPE_LABEL = "agent scope";
export declare function sessionCost(session: SessionHistoryRow): number | null;
export declare function summarizeCost(sessions: SessionHistoryRow[]): CostSummary;
export declare function groupSessions(sessions: SessionHistoryRow[], keyOf: (session: SessionHistoryRow) => string, labelOf: (session: SessionHistoryRow) => string): CostGroup[];
export declare function dailyCostBuckets(sessions: SessionHistoryRow[], days?: number): CostBucket[];
export declare function trendDeltaPercent(buckets: CostBucket[]): number | null;
export declare function percentOf(value: number, total: number): number;
export declare function scopeLabel(session: SessionHistoryRow): string;
export declare function scopeKey(session: SessionHistoryRow): string;
export declare function scopeMatches(session: SessionHistoryRow, selectedScope: string): boolean;
export declare function filterSessionsByScope(sessions: SessionHistoryRow[], selectedScope: string): SessionHistoryRow[];
export declare function scopeGroups(sessions: SessionHistoryRow[]): CostGroup[];
export declare function deployKey(session: SessionHistoryRow): string;
export declare function deployLabel(session: SessionHistoryRow): string;
