import { type JsonApiAnalyticalDashboardOutWithLinks, type JsonApiAttributeOut, type JsonApiAttributeOutDocument, type JsonApiAttributeOutList, type JsonApiAttributeOutWithLinks, type JsonApiDatasetOutWithLinks, type JsonApiFactOutDocument, type JsonApiFactOutList, type JsonApiFactOutWithLinks, type JsonApiLabelOutWithLinks, type JsonApiMetricOutList, type JsonApiMetricOutWithLinks } from "@gooddata/api-client-tiger"; import { type IMetadataObjectBuilder } from "@gooddata/sdk-backend-base"; import { type IAttributeDisplayFormMetadataObject, type IAttributeMetadataObject, type IDashboardMetadataObject, type IDataSetMetadataObject, type IFactMetadataObject, type IMeasureMetadataObject } from "@gooddata/sdk-model"; export type MetadataObjectFromApi = JsonApiAttributeOutWithLinks | JsonApiFactOutWithLinks | JsonApiMetricOutWithLinks | JsonApiLabelOutWithLinks | JsonApiDatasetOutWithLinks | JsonApiAnalyticalDashboardOutWithLinks; export declare const commonMetadataObjectModifications: >(item: TItem) => (builder: T) => T; export declare function createLabelMap(included: JsonApiAttributeOutDocument["included"] | undefined): Record; export declare function createDataSetMap(included: JsonApiAttributeOutDocument["included"] | undefined): Record; /** * Converts all labels of this attribute. The map contains sideloaded label information */ export declare function convertAttributeLabels(attribute: JsonApiAttributeOut | JsonApiAttributeOutWithLinks, labelsMap: Record): IAttributeDisplayFormMetadataObject[]; /** * Converts result of a single attribute query with included labels into a {@link IAttributeMetadataObject}. * * @param attribute - response from backend */ export declare function convertAttributeWithSideloadedLabels(attribute: JsonApiAttributeOutDocument): IAttributeMetadataObject; /** * Converts result of attributes query with included labels into list of {@link IAttributeMetadataObject}s * * @param attributes - response from backend */ export declare function convertAttributesWithSideloadedLabels(attributes: JsonApiAttributeOutList): IAttributeMetadataObject[]; /** * Converts sideloaded facts list into list of {@link IFactMetadataObject} * * @param facts - sideloaded facts */ export declare function convertFactsWithLinks(facts: JsonApiFactOutList): IFactMetadataObject[]; /** * Converts sideloaded fact into {@link IFactMetadataObject} * * @param factDoc - sideloaded fact */ export declare function convertFact(factDoc: JsonApiFactOutDocument): IFactMetadataObject; /** * Converts sideloaded metrics list into list of {@link IMeasureMetadataObject} * * @param metrics - sideloaded facts */ export declare function convertMetricsWithLinks(metrics: JsonApiMetricOutList): IMeasureMetadataObject[]; /** * Converts sideloaded dataset into {@link IDataSetMetadataObject} * * @param dataset - sideloaded dataset */ export declare function convertDatasetWithLinks(dataset: JsonApiDatasetOutWithLinks): IDataSetMetadataObject; /** * Converts sideloaded dashboard into {@link IDashboardMetadataObject} * * @param dashboard - sideloaded dashboard */ export declare function convertAnalyticalDashboardWithLinks(dashboard: JsonApiAnalyticalDashboardOutWithLinks): IDashboardMetadataObject; //# sourceMappingURL=MetadataConverter.d.ts.map