import type { IAnalyticalBackend } from "@gooddata/sdk-backend-spi"; import { DataViewFacade, type GoodDataSdkError, type UseCancelablePromiseStatus } from "@gooddata/sdk-ui"; import type { ILayerExecutionRecord } from "../../types/props/geoChart/internal.js"; /** * Result of loading all layer execution data in parallel. * * @internal */ export interface ILayersDataResult { /** * Map of layerId to DataViewFacade for each successfully loaded layer. * Can contain partial results when some layers fail. */ layerDataViews: Map; /** * Combined loading status for all layers. * - "pending" if no executions provided * - "loading" while any execution is in progress * - "success" when the primary layer completes successfully * - "error" when the primary layer fails */ status: UseCancelablePromiseStatus; /** * First error encountered, if any. */ error?: GoodDataSdkError; } /** * Hook that executes all layer executions in parallel and returns combined results. * * @remarks * Uses Promise.allSettled to execute all layers simultaneously. The status is: * - "success" when the primary layer has loaded successfully * - "error" when the primary layer fails (returns the primary-layer error) * - "loading" while any layer is still loading * * @param layerExecutions - Array of layer execution records * @param backend - Optional backend override * @param workspace - Optional workspace override * @returns Combined data views, status, and error * * @internal */ export declare function useLayersData(layerExecutions: ILayerExecutionRecord[], backend?: IAnalyticalBackend, workspace?: string): ILayersDataResult; //# sourceMappingURL=useLayersData.d.ts.map