/** * Document processing functions for the docusaurus-plugin-llms plugin */ import { DocInfo, PluginContext } from './types'; /** * Optional per-file settings for `processMarkdownFile`, accepted as a final * options argument. Provided as an object so new settings can be added * without extending the (already long) positional parameter list. */ export interface ProcessFileOptions { pathTransformation?: { ignorePaths?: string[]; addPaths?: string[]; }; excludeImports?: boolean; removeDuplicateHeadings?: boolean; preserveComponents?: string[]; resolvedUrl?: string; imageAssetMap?: Map; outDir?: string; siteDir?: string; sectionPath?: string; } /** * Process a markdown file and extract its metadata and content * @param filePath - Path to the markdown file * @param baseDir - Base directory * @param siteUrl - Base URL of the site * @param pathPrefix - Path prefix for URLs (e.g., 'docs' or 'blog') * @param opts - Optional settings; see ProcessFileOptions. Accepts the * legacy positional tail (pathTransformation, excludeImports, * removeDuplicateHeadings, preserveComponents, resolvedUrl, * imageAssetMap, outDir, siteDir, sectionPath) for callers * written before the object form existed. * @returns Processed file data */ export declare function processMarkdownFile(filePath: string, baseDir: string, siteUrl: string, pathPrefix?: string, ...rest: unknown[]): Promise; export declare function processFilesWithPatterns(context: PluginContext, allFiles: string[], includePatterns?: string[], ignorePatterns?: string[], orderPatterns?: string[], includeUnmatched?: boolean): Promise;