import type { DataFrame, Field } from '@grafana/data';
import type { AlignedData } from 'uplot';
import type { Threshold } from '../types/dashboard';
export interface TimeSeriesData {
    timestamps: number[];
    series: Array<{
        label: string;
        values: number[];
    }>;
}
export declare function createDataFrame(opts: {
    name?: string;
    refId?: string;
    fields: Array<{
        name: string;
        type: string;
        values: any[];
        config?: Record<string, any>;
    }>;
}): DataFrame;
export declare function timeSeriesToDataFrame(data: TimeSeriesData, name?: string, unit?: string): DataFrame;
export declare function dataFrameToAlignedData(frame: DataFrame): AlignedData;
export declare function getFieldValues<T = number>(frame: DataFrame, fieldName: string): T[];
export declare function getFieldLabel(field: Field, frame?: DataFrame): string;
export declare function extractTimeField(frame: DataFrame): {
    name: string;
    timestamps: number[];
};
export declare function getThresholdColor(value: number, thresholds: Threshold[]): string;
