import { type DataSourceDimensionsErrorState, type DataSourceDimensionsLoadingState, type DataSourceDimensionsState, type DataSourceDimensionsSuccessState, type GetDataSourceDimensionsParams } from '@sisense/sdk-ui-preact'; import type { MaybeRefOrWithRefs } from '../types'; /** Reexport types from @sisense/sdk-ui-preact */ export type { GetDataSourceDimensionsParams, DataSourceDimensionsState, DataSourceDimensionsLoadingState, DataSourceDimensionsErrorState, DataSourceDimensionsSuccessState, }; /** * A Vue composable function `useGetDataSourceDimensions` that fetches the dimensional model of a data source. * * @param {MaybeRefOrWithRefs} params - Parameters for fetching the data source dimensions, supporting reactive Vue refs. * Includes the data source to fetch dimensions for, and optional pagination and search parameters. * * @example * How to use `useGetDataSourceDimensions` within a Vue component: * ```vue * * * * ``` * * The composable returns an object with the following reactive properties to manage the dimensions state: * - `dimensions`: The fetched dimensions of the data source, or `undefined` until the load succeeds. * - `isLoading`: Indicates if the dimensions load is in progress. * - `isError`: Indicates if an error occurred during the dimensions load. * - `isSuccess`: Indicates if the dimensions load completed successfully without errors. * - `error`: Contains the error object if an error occurred during the load. * - `status`: The status of the load operation ('loading', 'success', or 'error'). * * @group Fusion Assets * @fusionEmbed */ export declare const useGetDataSourceDimensions: (params: MaybeRefOrWithRefs) => import("vue").ToRefs;