import * as fromRoot from '../+shared'; import { Attribute, Feed, SemanticGroup } from '../+shared'; import { Client } from '../Client'; import * as fromModels from './model'; import { DashboardAttributesQueryParams, DashboardColors, DashboardFeedsQueryParams, DashboardSemanticGroupsQueryParams, LocationData, MapSettings } from './model'; export declare class WidgetApi { private readonly client; constructor(client: Client); create(dashboardId: number, data: fromModels.Widget): Promise>; createWithFile(dashboardId: number, widgetData: fromModels.Widget): Promise>; read(dashboardId: number, widgetId: number): Promise>; delete(dashboardId: number, id: number): Promise>; update(dashboardId: number, data: fromModels.Widget): Promise>; updateBulk(dashboardId: number, data: fromModels.Widget[]): Promise>; getFeedsInScope(dashboardId: number, queryParams: fromModels.DashboardScopeFeedsQueryParams): Promise>; getAttributesInScope(dashboardId: number, queryParams: fromModels.DashboardScopeAttributesQueryParams): Promise>; getSemanticGroupsInScope(dashboardId: number, queryParams: fromModels.DashboardScopeSemanticQueryParams): Promise>; /** * @requires ACCESS_DATA_VISUALISATION_APPLICATION permission * @requires ACCESS_DATA_VISUALISATION_DASHBOARDS permission */ getFeedsOnDashboard(dashboardId: number, params: DashboardFeedsQueryParams): Promise>; getMapLocations(dashboardId: number, subscopeId: number, size?: number): Promise>; getMapSettings(dashboardId: number, subscopeId: number): Promise>; getDashboardColors(dashboardId: number): Promise>; /** * @requires ACCESS_DATA_VISUALISATION_APPLICATION permission * @requires ACCESS_DATA_VISUALISATION_DASHBOARDS permission */ getAttributesOnDashboard(dashboardId: number, params: DashboardAttributesQueryParams): Promise>; /** * @requires ACCESS_DATA_VISUALISATION_APPLICATION permission * @requires ACCESS_DATA_VISUALISATION_DASHBOARDS permission */ getSemanticGroupsOnDashboard(dashboardId: number, params: DashboardSemanticGroupsQueryParams): Promise>; getImage(dashboardId: number, widgetId: number): Promise>; uploadImage(dashboardId: number, widgetId: number, image: File): Promise>; } //# sourceMappingURL=WidgetApi.d.ts.map