import { BenchmarkFieldKeys, BenchmarkRecord, BenchmarkRenderIcon, NormalizedBenchmarkItem } from "./types.mjs"; //#region src/common/benchmark/utils.d.ts export declare const DEFAULT_BENCHMARK_KEYS: { readonly colorKey: "color"; readonly errorKey: "error"; readonly iconKey: "icon"; readonly index: "name"; readonly lineKey: "line"; readonly providerKey: "provider"; readonly valueKey: "score"; }; export declare const resolveBenchmarkKeys: (keys?: BenchmarkFieldKeys) => { colorKey: string; errorKey: string; iconKey: string; index: string; lineKey: string; providerKey: string; valueKey: string; }; export declare const getBenchmarkIcon: (record: BenchmarkRecord, iconKey: string, renderIcon?: BenchmarkRenderIcon, index?: number) => import("react").ReactNode; export declare const normalizeBenchmarkData: ({ colorKey, data, errorKey, iconKey, index, lineKey, providerKey, renderIcon, sortOrder, valueKey }: BenchmarkFieldKeys & { data: BenchmarkRecord[]; renderIcon?: BenchmarkRenderIcon; sortOrder?: "ascending" | "descending" | "none"; }) => NormalizedBenchmarkItem[]; export declare const getBenchmarkMaxValue: (items: NormalizedBenchmarkItem[], maxValue?: number) => number; export declare const getBenchmarkBarPercent: (value: number, maxValue: number, minPercent?: number) => number; export declare const defaultBenchmarkValueFormatter: (value: number) => string; export declare const defaultBenchmarkAccuracyFormatter: (value: number) => string; export declare const defaultBenchmarkErrorFormatter: (value: number) => string; export declare const formatBenchmarkAccuracyDisplay: ({ accuracyFormatter, error, errorFormatter, showError, value, valueFormatter }: { accuracyFormatter?: (value: number) => string; error?: number; errorFormatter?: (value: number) => string; showError?: boolean; value: number; valueFormatter?: (value: number) => string; }) => { errorText: undefined; main: string; text: string; } | { errorText: string; main: string; text: string; }; /** * Split a label into lines. Supports `\n` / `\r\n`. */ export declare const splitBenchmarkLabel: (label: unknown) => string[]; export declare const getBenchmarkLabelMetrics: (label: unknown) => { lineCount: number; lines: string[]; longestWidth: number; }; //#endregion //# sourceMappingURL=utils.d.mts.map