UNPKG

@datafinder/embed-sdk

Version:

Embed SDK for DataFinder

18 lines (17 loc) 906 B
import { DSL } from '../../types/dsl'; import { EmbedRetentionAnalysisOptions } from '../../types/retention-analysis'; import { BaseAnalysisController, IComlinkBaseControllerAction } from '../base-analysis'; import * as Comlink from 'comlink'; interface IComlinkControllerAction extends IComlinkBaseControllerAction { getDsl: () => Promise<DSL.SingleContentDsl<DSL.ContentQueriesItem>>; } export declare class RetentionAnalysisController extends BaseAnalysisController { protected state: EmbedRetentionAnalysisOptions; /** 页面交互控制器 */ protected comlinkController: Comlink.Remote<IComlinkControllerAction> | undefined; protected eventTrace: () => void; constructor(props: EmbedRetentionAnalysisOptions); /** 获取查询dsl,包含时间、事件 */ getDsl: () => Promise<DSL.SingleContentDsl<DSL.ContentQueriesItem>> | undefined; } export {};