// 主体功能逻辑
declare namespace Main {
  /**
   * @function setOptions
   * @description 注入配置
   * @param {Object} options 配置信息
   */
  interface setOptions {
    (options: any): void;
  }

  /**
   * @function initGraph
   * @description 初始化图谱功能
   */
  interface initGraph {
    (): void;
  }

  /**
   * @function render
   * @description 渲染图谱元素
   */
  interface render {
    (): void;
  }

  /**
   * @function start
   * @description 开始执行模拟器运算
   */
  interface start {
    (): void;
  }

  /**
   * @function reset
   * @description 重置节点到自由状态
   */
  interface reset {
    (): void;
  }

  /**
   * @function resize
   * @description 根据页面尺寸重新调整画布尺寸
   */
  interface resize {
    (): void;
  }

  /**
   * @function destroy
   * @description 销毁整个图谱
   */
  interface destroy {
    (): void;
  }
}

export default Main;
