import { type IInsightWidget } from "@gooddata/sdk-model"; import { type DataViewFacade, type GoodDataSdkError, type UseCancelablePromiseCallbacks, type UseCancelablePromiseState } from "@gooddata/sdk-ui"; /** * Configuration for the `useInsightWidgetDataView` hook. * * @public */ export interface IUseInsightWidgetDataView { /** * Insight widget to get data view for. * * @remarks * Note: When the insight widget is not provided, hook is locked in a "pending" state. */ insightWidget?: IInsightWidget; } /** * Callbacks for {@link useInsightWidgetDataView} hook. * * @public */ export type UseInsightWidgetInsightDataViewCallbacks = UseCancelablePromiseCallbacks; /** * This hook provides an easy way to read a data view from insight widget. * * @param config - configuration of the hook * * @public */ export declare function useInsightWidgetDataView({ insightWidget, onCancel, onError, onLoading, onPending, onSuccess }: IUseInsightWidgetDataView & UseInsightWidgetInsightDataViewCallbacks): UseCancelablePromiseState; //# sourceMappingURL=useInsightWidgetDataView.d.ts.map