import { n as GlossaryEntity } from "./types-v9e7PIYM.mjs"; //#region src/doc-glossary.d.ts /** Options for scanning markdown files and extracting glossary terms. */ interface DocGlossaryOptions { /** Glob patterns for markdown files to scan (relative to cwd or absolute). */ include: string[]; /** Default bucket when not specified via marker or pathBuckets. */ defaultBucket?: string; /** Map file path patterns to buckets: { "docs/api/**": "api" }. */ pathBuckets?: Record; /** Base URL prefix for generating hrefs from file paths. */ baseUrl?: string; } /** A glossary term extracted from a markdown source file. */ interface ExtractedTerm { /** The term text. */ term: string; /** Tooltip/description text. */ tooltip: string; /** Bucket name for grouping terms. */ bucket: string; /** URL derived from source file path. */ href?: string; /** Source file path (for debugging). */ source: string; } /** * Extract glossary terms from markdown files at build time. * * Scans files matching the include patterns and extracts terms using * three pattern types: heading markers, abbreviation syntax, and dfn tags. */ declare function extractGlossary(options: DocGlossaryOptions): ExtractedTerm[]; /** * Extract terms from a single markdown string (no filesystem access). * Useful for testing and programmatic usage. */ declare function extractFromMarkdown(content: string, options?: { bucket?: string; filePath?: string; baseUrl?: string; }): ExtractedTerm[]; /** Load terms from a specific bucket, converting to GlossaryEntity[]. */ declare function loadBucket(terms: ExtractedTerm[], bucket: string): GlossaryEntity[]; /** Save extracted terms to a JSONL file for cross-site import. */ declare function writeGlossaryBucket(terms: ExtractedTerm[], bucket: string, outPath: string): void; /** Load terms from a JSONL bucket file. */ declare function readGlossaryBucket(path: string): ExtractedTerm[]; //#endregion export { DocGlossaryOptions, ExtractedTerm, extractFromMarkdown, extractGlossary, loadBucket, readGlossaryBucket, writeGlossaryBucket };