import { type IInsightReferences, type IInsightReferencing, type IInsightsQuery, type IInsightsQueryOptions, type IInsightsQueryResult, type IWorkspaceInsightsService, type SupportedInsightReferenceTypes } from "@gooddata/sdk-backend-spi"; import { type ICatalogAttribute, type ICatalogFact, type ICatalogMeasure, type IFilter, type IInsight, type IInsightDefinition, type IMetadataObjectBase, type IMetadataObjectIdentity, type IObjectCertificationWrite, type IVisualizationClass, type ObjRef } from "@gooddata/sdk-model"; import { type RecordedRefType, type RecordingIndex } from "./types.js"; /** * Note: the impl always makes / gives clones of recorded insights to prevent mutable operations * impacting the recordings and thus violate client-server interaction integrity (client mutates, server * suddenly starts returning modified data for everyone) * * @internal */ export declare class RecordedInsights implements IWorkspaceInsightsService { private readonly insightRefType; private readonly insights; private readonly visClasses; constructor(recordings: RecordingIndex, insightRefType: RecordedRefType); createInsight(def: IInsightDefinition): Promise; getInsight(ref: ObjRef): Promise; getInsights(query?: IInsightsQueryOptions): Promise; getInsightsQuery(): IInsightsQuery; updateInsight(insight: IInsight): Promise; updateInsightMeta(_: Partial & IMetadataObjectIdentity): Promise; setCertification(_ref: ObjRef, _certification?: IObjectCertificationWrite): Promise; deleteInsight(ref: ObjRef): Promise; getVisualizationClass(ref: ObjRef): Promise; getVisualizationClasses(): Promise; getInsightReferencedObjects: (_insight: IInsight, _types?: SupportedInsightReferenceTypes[]) => Promise; getInsightReferencingObjects: (_ref: ObjRef) => Promise; getInsightWithAddedFilters: (insight: T, filters: IFilter[]) => Promise; getInsightWithCatalogItems(ref: ObjRef): Promise<{ insight: IInsight; catalogItems: Array; }>; private createInsightWithRef; private createRef; private getVisualizationClassByUri; private getVisualizationClassById; } //# sourceMappingURL=insights.d.ts.map