@grafana/ui
Version:
Grafana Components Library
17 lines (16 loc) • 1.04 kB
TypeScript
import { PanelModel, ReduceDataOptions, Threshold, ValueMapping, VizOrientation } from '@grafana/data';
import { OptionsWithTextFormatting } from '@grafana/schema';
export interface SingleStatBaseOptions extends OptionsWithTextFormatting {
reduceOptions: ReduceDataOptions;
orientation: VizOrientation;
}
export declare function sharedSingleStatPanelChangedHandler(panel: PanelModel<Partial<SingleStatBaseOptions>> | any, prevPluginId: string, prevOptions: any): any;
export declare function sharedSingleStatMigrationHandler(panel: PanelModel<SingleStatBaseOptions>): SingleStatBaseOptions;
export declare function moveThresholdsAndMappingsToField(old: any): any;
export declare function migrateFromValueOptions(old: any): any;
export declare function migrateOldThresholds(thresholds?: any[]): Threshold[] | undefined;
/**
* @deprecated use convertOldAngularValueMappings instead
* Convert the angular single stat mapping to new react style
*/
export declare function convertOldAngularValueMapping(panel: any): ValueMapping[];