import type { Metadata, QueryResult, RangedFieldTypes } from '@dynatrace-sdk/client-query'; import { type Dimension } from './timeseries/get-dimensions.js'; import type { Timeseries } from '../charts/core/types/timeseries.js'; /** * @public */ export interface TimeseriesWithDimensions extends Timeseries { userData: { dimensions: Dimension[]; valueDimension: string; }; } /** * @internal */ export declare function createName(dimensions: Array, valueName: string): string[]; /** * Converts Grail records to Timeseries that can be used for charting * @param queryResult - The result of the query * @returns the computed Timeseries * @throws error if the data is malformed * @public */ export declare function convertQueryResultToTimeseries(queryResult: QueryResult): TimeseriesWithDimensions[]; /** * Converts Grail records to Timeseries that can be used for charting * @param records - The input records from the query * @param fieldTypes - Types of fields * @param hiddenFieldIds - The list of field ids which should not be converted * @returns the computed Timeseries * @throws error if the data is malformed * @public */ export declare function convertToTimeseries(records: QueryResult['records'], fieldTypes: RangedFieldTypes[], hiddenFieldIds?: string[], metadata?: Metadata): TimeseriesWithDimensions[];