import type { ChattyHostConnection } from '@looker/chatty'; import type { ILookerConnection, ILookerEmbedDashboard, ILookerEmbedExplore, ILookerEmbedExtension, ILookerEmbedLook, ILookerEmbedQueryVisualization, ILookerEmbedReport, ILookerEmbedConversationalAnalytics, LoadParams, LoadIdParams, LoadUrlArgs, LoadUrlParams, PageType, LookerDashboardOptions, LookerEmbedFilterParams, IConnectOptions, UrlParams } from './types'; import type { EmbedClientEx } from './EmbedClientEx'; export declare class EmbedConnection implements ILookerConnection { private _host; private _embedClient; _pageType: PageType; _isEditing: boolean; _currentPathname: string; constructor(_host: ChattyHostConnection, _embedClient: EmbedClientEx); resetConnectionHost(connection: EmbedConnection): void; send(message: string, params?: any): void; sendAndReceive(message: string, params?: any): Promise; getLookerVersion(): number; getLookerMajorVersion(): number; getLookerMinorVersion(): number; loadUrl({ url, pushHistory, options, }: LoadUrlArgs | LoadUrlParams): Promise; loadId({ type, id, pushHistory, options, params, }: LoadIdParams): Promise; loadDashboard(idOrParams: string | LoadParams, pushHistory?: boolean, options?: IConnectOptions): Promise; loadExplore(idOrParams: string | LoadParams, pushHistory?: boolean, options?: IConnectOptions): Promise; loadMergeQuery(idOrParams: string | LoadParams, pushHistoryArg?: boolean, optionsArg?: IConnectOptions): Promise; loadQuery(model: string, view: string, qid: string, pushHistory?: boolean, options?: IConnectOptions, urlParams?: UrlParams): Promise; loadLook(idOrParams: string | LoadParams, pushHistory?: boolean, options?: IConnectOptions): Promise; loadExtension(idOrParams: string | LoadParams, pushHistory?: boolean, options?: IConnectOptions): Promise; loadQueryVisualization(idOrParams: string | LoadParams, pushHistory?: boolean, options?: IConnectOptions): Promise; loadReport(idOrParams: string | LoadParams, pushHistory?: boolean, options?: IConnectOptions): Promise; loadConversationalAnalytics(pushHistory?: boolean, options?: IConnectOptions): Promise; preload(pushHistory?: boolean, options?: IConnectOptions): Promise; asDashboardConnection(): ILookerEmbedDashboard; asExploreConnection(): ILookerEmbedExplore; asExtensionConnection(): ILookerEmbedExtension; asLookConnection(): ILookerEmbedLook; asQueryVisualizationConnection(): ILookerEmbedQueryVisualization; asReportConnection(): ILookerEmbedReport; asConversationalAnalyticsConnection(): ILookerEmbedConversationalAnalytics; getPageType(): PageType; isEditing(): boolean; hasSessionExpired(): boolean; /** * @deprecated use asXXXConnection().run() instead */ run(): void; /** * @deprecated use asDashboardConnection().stop() instead */ stop(): void; /** * @deprecated use asDashboardConnection().edit() instead */ edit(): void; /** * @deprecated use asXXXConnection().updateFilters(params) instead */ updateFilters(params: LookerEmbedFilterParams): void; /** * @deprecated use asDashboardConnection().setOptions(options) instead */ setOptions(options: LookerDashboardOptions): void; /** * @deprecated use asDashboardConnection().openScheduleDialog() instead */ openScheduleDialog(): Promise; }