import { AbstractTopic, TopicOptions, MarkerOptions, ImageOptions } from '../abstracts/topic.abstract'; import { SummaryOptions } from '../abstracts/summary.abstract'; import Base from './base'; import * as Model from '../common/model'; import * as Core from 'xmind-model'; /** * @description Topic common methods */ export declare class Topic extends Base implements AbstractTopic { private readonly sheet; private readonly root; private readonly resources; private componentId; private lastId; constructor(options?: TopicOptions); on(componentId?: string): this; add(topic?: Model.Topic, options?: { index: number; }): this; image(options?: ImageOptions): string; note(text: string, del?: boolean): this; destroy(componentId: string): this; summary(options?: SummaryOptions): this; marker(options?: MarkerOptions): this; cid(title?: string): string; cids(): { [key: string]: string; }; find(componentId?: string): any; /** * @description Get root topic * @return {Topic} */ readonly rootTopic: Core.Topic; /** * @description Get root topicId */ readonly rootTopicId: any; /** * @description Get current topic instance * @return {Core.Topic} * @private */ private current; /** * @description Check topic id * @param {String} componentId * @return {Boolean} * @private */ private isValidTopicId; }