import { ValueMapping, Threshold, DisplayValue, GrafanaTheme, SeriesData, InterpolateFunction, Field, GraphSeriesValue } from '../types/index'; export interface FieldDisplayOptions { values?: boolean; limit?: number; calcs: string[]; defaults: Partial; override: Partial; thresholds: Threshold[]; mappings: ValueMapping[]; } export declare const VAR_SERIES_NAME = "__series_name"; export declare const VAR_FIELD_NAME = "__field_name"; export declare const VAR_CALC = "__calc"; export declare const VAR_CELL_PREFIX = "__cell_"; export interface FieldDisplay { field: Field; display: DisplayValue; sparkline?: GraphSeriesValue[][]; } export interface GetFieldDisplayValuesOptions { data?: SeriesData[]; fieldOptions: FieldDisplayOptions; replaceVariables: InterpolateFunction; sparkline?: boolean; theme: GrafanaTheme; } export declare const DEFAULT_FIELD_DISPLAY_VALUES_LIMIT = 25; export declare const getFieldDisplayValues: (options: GetFieldDisplayValuesOptions) => FieldDisplay[]; /** * Returns a version of the field with the overries applied. Any property with * value: null | undefined | empty string are skipped. * * For numeric values, only valid numbers will be applied * for units, 'none' will be skipped */ export declare function applyFieldProperties(field: Field, props?: Partial): Field; declare type PartialField = Partial; export declare function getFieldProperties(...props: PartialField[]): Field; export {};