import { ViewRenderingOptions } from '../types/rendering'; import { AbstractViewManager } from '../manager/AbstractViewManager'; /** * 表示由 Client 提供的回调方法 */ export interface CohortEditorServantCallbacks { /** * 设置分群标题 */ setTitle(title: string): void; } /** * 表示由 Manager 提供的回调方法 */ export interface CohortEditorManagerCallbacks { /** * 表示创建分群成功后的回调 */ onCohortCreate(cohortId: number): void; } /** * 分群编辑器的选项 */ export interface CohortEditorViewOptions extends ViewRenderingOptions, Partial { /** * 表示打开的分群 ID */ cohortId?: number; /** * 表示打开的分群类型 * * - 2: 上传创建 * - 4: 规则创建 */ cohortType: 2 | 4; } export declare class CohortEditor extends AbstractViewManager implements CohortEditorServantCallbacks { protected _targetNode: HTMLElement; protected _options: CohortEditorViewOptions; constructor(_targetNode: HTMLElement, _options: CohortEditorViewOptions); setTitle(title: string): void; protected getViewPath(): string; protected getViewSearchParams(): null; }