/**
 * Markdown 文档下载工具
 *
 * @description
 * 将 Markdown 内容转换为 DOCX 或 PDF 格式并下载。
 * 可在任何 React + TypeScript 项目中使用。
 *
 * @example
 * ```tsx
 * // React Hook 使用方式
 * import { useMarkdownDownload } from "./markdown-download";
 *
 * function MyComponent() {
 *   const { downloadAsDocx, downloadAsPdf, isDownloading } = useMarkdownDownload();
 *
 *   return (
 *     <div>
 *       <button onClick={() => downloadAsDocx("# Hello", "doc")}>
 *         Download DOCX
 *       </button>
 *       <button onClick={() => downloadAsPdf("# Hello", "doc")}>
 *         Download PDF
 *       </button>
 *     </div>
 *   );
 * }
 * ```
 *
 * @example
 * ```ts
 * // 非 React 环境直接使用转换函数
 * import { downloadMarkdownAsDocx, downloadMarkdownAsPdf } from "./markdown-download";
 *
 * await downloadMarkdownAsDocx("# Hello World", "document");
 * await downloadMarkdownAsPdf("# Hello World", "document", { format: "a4" });
 * ```
 */

// React Hook
export { useMarkdownDownload } from "./use-markdown-download";

// 类型
export type {
  UseMarkdownDownloadOptions,
  UseMarkdownDownloadReturn,
} from "./use-markdown-download";
export type { PdfOptions, DocxOptions } from "./converter";

// 转换函数（供非 React 环境使用）
export { downloadMarkdownAsDocx, downloadMarkdownAsPdf } from "./converter";
