/**
 * Advanced Analytics Service Layer
 * Handles metrics collection, aggregation, cost analysis, and projections.
 */
import type { AnalyticsStorage, CostAnalysisOptions, CostAnalysisResult, ProviderMetricsOptions, ProviderMetricsResult, TeamAnalyticsOptions, TeamAnalyticsResult, TelemetryRecord } from "../types/index.js";
export declare class AnalyticsService {
    private storage;
    constructor(storage?: AnalyticsStorage);
    /**
     * Helper to parse dynamic time range formats safely
     */
    private parseTimeRange;
    /**
     * Capture a request lifecycle record
     */
    trackRequest(record: Omit<TelemetryRecord, "id" | "cost"> & {
        cost?: number;
    }): Promise<void>;
    /**
     * getProviderMetrics implementation
     */
    getProviderMetrics(options?: ProviderMetricsOptions): Promise<ProviderMetricsResult>;
    /**
     * Helper to format timestamps for date groupings.
     * Clones the Date so week arithmetic never mutates the caller's value.
     */
    private formatGroupDate;
    /**
     * getCostAnalysis implementation
     */
    getCostAnalysis(options?: CostAnalysisOptions): Promise<CostAnalysisResult>;
    /**
     * getTeamAnalytics implementation
     */
    getTeamAnalytics(options?: TeamAnalyticsOptions): Promise<TeamAnalyticsResult>;
}
