// 说明：
// `simple-mind-map` 的 `src/*` 属于内部实现路径，npm 包通常不提供 TypeScript 声明文件。
// 但在项目中我们需要按官方示例从 `src/plugins/*` 等路径引入插件，因此在此补充最小声明，
// 仅用于消除 TS7016（找不到声明文件）报错。
//
// 注意：这里的类型刻意保持宽松（unknown），避免把内部 API 当作稳定公共接口依赖。

declare module "simple-mind-map/src/svg/icons.js" {
  export const nodeIconList: unknown[];
}

declare module "simple-mind-map/src/utils/index.js" {
  export const mergerIconList: (icons: unknown[]) => unknown[];
  export const createUid: () => string;
}

declare module "simple-mind-map/src/plugins/Painter.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/AssociativeLine.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/OuterFrame.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/Export.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/Formula.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/RichText.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/MiniMap.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/Select.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/Drag.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/KeyboardNavigation.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/NodeImgAdjust.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/Scrollbar.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/RainbowLines.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/Watermark.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/TouchEvent.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/Cooperate.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/Demonstrate.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/MindMapLayoutPro.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/NodeBase64ImageStorage.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/ExportPDF.js" {
  const plugin: unknown;
  export default plugin;
}
declare module "simple-mind-map/src/plugins/ExportXMind.js" {
  const plugin: unknown;
  export default plugin;
}

declare module "simple-mind-map/src/core/render/node/MindMapNode.js" {
  const MindMapNode: unknown;
  export default MindMapNode;
}

declare module "simple-mind-map/src/parse/xmind.js" {
  const xmind: {
    parseXmindFile: (
      file: Blob | ArrayBuffer | Uint8Array,
      handleMultiCanvas?: (content: unknown[]) => unknown,
    ) => Promise<unknown>;
  };
  export default xmind;
}

declare module "simple-mind-map/src/parse/markdownTo.js" {
  export type MarkdownToMindmapResult = {
    data?: Record<string, unknown>;
    children?: unknown[];
    [key: string]: unknown;
  };
  export const transformMarkdownTo: (md: string) => MarkdownToMindmapResult;
}
