/**
 * @fileoverview Model Performance Leaderboard.
 *
 * Ranks AI models by configurable metrics (Cost Efficiency, Speed, Reliability, Usage Volume).
 * Data is loaded from MJ: AI Prompt Runs and augmented with model metadata from AIEngineBase.
 */
import { OnInit, OnDestroy } from '@angular/core';
import { BaseAngularComponent } from '@memberjunction/ng-base-types';
import * as i0 from "@angular/core";
interface ModelLeaderboardRow {
    Rank: number;
    RankClass: string;
    ModelName: string;
    ApiId: string;
    Vendor: string;
    VendorID: string;
    Runs: number;
    AvgLatencyMs: number;
    AvgLatencyColor: string;
    P95LatencyMs: number;
    SuccessRate: number;
    CostPer1KTokens: number;
    CacheHitRate: number;
    TotalCost: number;
}
type SortByOption = 'cost-efficiency' | 'speed' | 'reliability' | 'usage-volume';
export declare class AnalyticsModelPerformanceComponent extends BaseAngularComponent implements OnInit, OnDestroy {
    private _timeRange;
    set TimeRange(value: string);
    get TimeRange(): string;
    private _sortBy;
    set SortBy(value: SortByOption | string);
    get SortBy(): SortByOption;
    private _selectedVendor;
    set SelectedVendor(value: string);
    get SelectedVendor(): string;
    private cdr;
    private destroy$;
    private initialized;
    IsLoading: boolean;
    Rows: ModelLeaderboardRow[];
    private allRuns;
    ngOnInit(): Promise<void>;
    ngOnDestroy(): void;
    FormatLatency(ms: number): string;
    FormatCurrency(value: number, decimals?: number): string;
    private LoadData;
    private buildRows;
    private computeModelMetrics;
    private sortRows;
    private computePercentile;
    private getRankClass;
    private getLatencyColor;
    private buildDateFilter;
    static ɵfac: i0.ɵɵFactoryDeclaration<AnalyticsModelPerformanceComponent, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<AnalyticsModelPerformanceComponent, "app-analytics-model-performance", never, { "TimeRange": { "alias": "TimeRange"; "required": false; }; "SortBy": { "alias": "SortBy"; "required": false; }; "SelectedVendor": { "alias": "SelectedVendor"; "required": false; }; }, {}, never, never, false, never>;
}
export declare function LoadAnalyticsModelPerformance(): void;
export {};
//# sourceMappingURL=model-performance.component.d.ts.map