import { type IExecutionConfig, type IFilter, type IMeasure, type IResultHeader, type ObjRef } from "@gooddata/sdk-model"; import { type DataPoint } from "@gooddata/sdk-ui"; import { type ReferenceMap } from "../helpers/references.js"; export type EvaluatedMetric = { def: IMeasure; header: IResultHeader; ref: ObjRef; data: DataPoint; count: number; format?: string; }; export declare function useEvaluatedMetricsAndAttributes(references: ReferenceMap, filters: IFilter[], config: IExecutionConfig & { enabled: boolean; isExecutionInputLoading?: boolean; }): { loading: boolean; error: any; result: EvaluatedMetric[] | undefined; }; /** * @internal */ export declare function getMeasures(references: ReferenceMap): IMeasure[]; /** * The measures resolving attribute-shaped references: `max` for the value, and `count` alongside it * to tell a single value from several. * * A computed attribute is referenced exactly like any other attribute - its ref goes on the display * form slot, typed `computedAttribute` - and is aggregated the same way. Where the backend cannot * resolve the context an aggregation over one needs, it rejects the execution and every reference * in the widget renders as unretrievable; see {@link useEvaluatedMetricsAndAttributes}. * * @internal */ export declare function getLabels(references: ReferenceMap): { countMap: Record; metrics: IMeasure[]; }; //# sourceMappingURL=useEvaluatedMetricsAndAttributes.d.ts.map