import type { GetDashboardModelParams } from '@sisense/sdk-ui-preact'; import type { MaybeRefOrWithRefs } from '../types'; /** * A Vue composable function `useGetDashboardModel` for fetching a Sisense dashboard model. * It simplifies the process of retrieving detailed dashboard data, including widgets if specified, * by managing the loading, success, and error states of the request. This composable is especially useful * for Vue applications that need to integrate Sisense dashboard analytics, providing a reactive way to fetch * and display dashboard data. * * **Note:** Dashboard and Widget extensions based on JS scripts and add-ons in Fusion – for example, Blox and Jump To Dashboard – are not supported. * * @param {GetDashboardModelParams} params - The parameters for fetching the dashboard model, including the * dashboard OID and an option to include widgets within the dashboard. Supports dynamic parameter values through * Vue refs, allowing for reactive dashboard loading based on user interactions or other application states. * * @example * How to use `useGetDashboardModel` within a Vue component to fetch and display a Sisense dashboard: * ```vue * * * * ``` * * The composable returns an object with reactive properties to manage the state of the dashboard model fetching process: * - `dashboard`: The fetched dashboard model data, which is `undefined` until the fetch completes successfully. * - `isLoading`: Indicates if the dashboard model is currently being fetched. * - `isError`: Indicates if an error occurred during the fetch process. * - `isSuccess`: Indicates if the dashboard model was successfully fetched without errors. * - `error`: Contains the error object if an error occurred during the fetch. * * Utilizing this composable enables developers to declaratively integrate Sisense dashboard analytics into their Vue applications, * managing data fetching and state with minimal boilerplate code. * @group Fusion Assets * @fusionEmbed */ export declare const useGetDashboardModel: (params: MaybeRefOrWithRefs) => import("vue").ToRefs;