import { DataSource, DataSourceField } from '@sisense/sdk-data'; import { RestApiHookState } from '../../../../shared/utils/utility-types'; /** * Gets the legacy Fusion data structure to describe a column (attribute) in a data source. * Prefer using {@link useGetDataSourceDimensions} instead if possible. * * @param dataSource - The data source to get the fields for * @param params.enabled - Whether the query should be enabled. * @param params.count - The number of items to return * @param params.offset - The offset for pagination * @param params.searchValue - The search value to filter by * @returns The data source fields state * @internal */ export declare const useGetDataSourceFields: (params: { dataSource: DataSource | undefined; enabled?: boolean; count?: number; offset?: number; searchValue?: string; }) => DataSourceFieldsState; type DataSourceFieldsState = RestApiHookState<'dataSourceFields', DataSourceField[]>; export {};