import { type DataSource } from '@sisense/sdk-data'; import type { WidgetProps } from '../../../domains/widgets/components/widget/types'; import type { DashboardNarrativeQuery } from '../../../infra/api/narrative/dashboard-narrative-endpoints.js'; /** * Builds the queries of a dashboard narrative request from the widgets on the dashboard. * * Chart and pivot widgets become one query each, in the order given; every other widget type is * left out, as is a chart or pivot whose data source cannot be resolved or whose query cannot be * built. Trend and forecast companion measures are stripped: the service derives trends itself, and * one query it cannot run fails the whole request. Each query carries the number format of every * measure it queries, since the JAQL itself carries none. * @param widgets - Widgets in layout order. * @param defaultDataSource - Used when a widget's `dataSource` is undefined. * @returns Queries for `getDashboardNarrative`, not yet capped. * @internal */ export declare function buildDashboardNarrativeQueries(widgets: readonly WidgetProps[], defaultDataSource?: DataSource): DashboardNarrativeQuery[];