import type { QueryResult } from '@dynatrace-sdk/client-query'; import { format } from '@dynatrace-sdk/units'; /** @public */ export type DqlNumberType = 'double' | 'long' | 'duration'; /** * Interprets numbers from Grail and formats them according to its type. * All numbers of type `duration` are formatted in nanoseconds. Until the SDK * supports `BigInt`, `long` values that exceed the save integer space will be * formatted as strings. * @param value - The actual field value, either `number` or `string` for * `long` values. * @param type - The numeric DQL type, `double`, `long` or `duration`. * @param unit - Either the Units-SDK unit key of the value or the literal * configuration object accepted by the sdk/units format function. * @returns the formatted numeric value. * @throws error if the data is malformed * @public */ export declare function formatDqlNumber(value: string | number, type: T, unit?: T extends 'duration' ? never : string | Parameters[1]): string; /** @internal */ export declare const _getMetadataMetricsUnitForFieldName: (metadata: QueryResult["metadata"] | undefined, fieldName: string) => string | undefined; /** * @public */ export type ConversionCellValue = any; /** * @internal */ export declare const fallbackRenderer: (value: ConversionCellValue) => any;