import { type BackendId } from "./config.js";
export type Period = "daily";
export interface BackendUsage {
    inputTokens: number;
    outputTokens: number;
    totalTokens: number;
    totalCost: number;
    /** Models that contributed to this backend (for debugging) */
    modelsUsed: string[];
}
export interface UsageResult {
    backends: Record<BackendId, BackendUsage>;
    totals: {
        inputTokens: number;
        outputTokens: number;
        totalTokens: number;
        totalCost: number;
    };
    period: Period;
    error?: string;
}
/** Run @ccusage/pi CLI and return usage aggregated by backend. */
export declare function getUsage(period?: Period): Promise<UsageResult>;
