import { type IInsightWidget, type IInsightWidgetDefinition, type InsightDrillDefinition, type ObjRef, type VisualizationProperties } from "@gooddata/sdk-model"; import { type ValueOrUpdateCallback } from "../builder.js"; import { type IWidgetBaseBuilder, WidgetBaseBuilder } from "./widgetFactory.js"; /** * Insight widget builder * * @alpha */ export interface IInsightWidgetBuilder extends IWidgetBaseBuilder { drills(valueOrUpdateCallback: ValueOrUpdateCallback): this; insight(valueOrUpdateCallback: ValueOrUpdateCallback): this; properties(valueOrUpdateCallback: ValueOrUpdateCallback): this; } /** * @alpha */ export declare class InsightWidgetBuilder extends WidgetBaseBuilder implements IInsightWidgetBuilder { protected item: IInsightWidget; protected validator?: ((item: Partial) => void) | undefined; constructor(item: IInsightWidget, validator?: ((item: Partial) => void) | undefined); static for(insightWidget: IInsightWidgetDefinition): InsightWidgetBuilder; static forNew(insight: ObjRef): InsightWidgetBuilder; drills: (valueOrUpdateCallback: ValueOrUpdateCallback) => this; insight: (valueOrUpdateCallback: ValueOrUpdateCallback) => this; properties: (valueOrUpdateCallback: ValueOrUpdateCallback) => this; } /** * @alpha */ export declare const newInsightWidget: (insight: ObjRef, modifications: (builder: InsightWidgetBuilder) => InsightWidgetBuilder) => IInsightWidget; //# sourceMappingURL=insightWidgetFactory.d.ts.map