import type { ResultRecord, RangedFieldTypes, QueryResult } from '@dynatrace-sdk/client-query'; import { SingleValueData } from './types/single-value-data.js'; /** * @public */ export declare const EMPTY_SINGLE_VALUE_DATA: SingleValueData; /** * Converts a Grail record to a SingleValueData object that can be used for charting. * * @param fieldTypes - Types for fields * @param recordIndex - Index for the record * @param record - The Grail record * @param field - the user-select field to use from the record * @param autoscale - indicates if the value will be formatted with default formatter * @returns a SingleValueData object * @throws if the provided selected field is no longer part of the available fields of the provided record. * @public */ export declare function convertToSingleValueData(fieldTypes: RangedFieldTypes[], recordIndex: number, record: ResultRecord | null, field?: string, autoscale?: boolean): SingleValueData; /** * Lists the fields contained in a record. * * @param record - The input records from the query * @param fieldTypes - Types for fields * @param recordIndex - * * @public */ export declare function listRecordFields(fieldTypes: RangedFieldTypes[], recordIndex: number): Set; /** * Picks a record index given a record result array. * @param records - Records from a query * @public */ export declare function pickRecordIndex(records: QueryResult['records']): number;