export type ContentModel = "wikitext" | "css" | "javascript"; /** * Produced by convertDir() from a single Markdown file; consumed by deploy(). * - Producer: convertDir() in convert.ts * - Consumer: deploy() in deploy.ts (title/body/model for action=edit; sourcePath for summary) */ export interface Page { title: string; body: string; model: ContentModel; /** Path of the source .md file relative to the content dir, e.g. "categories/foo.md". */ sourcePath: string; } /** * Return paths of every file directly inside `/files/`. * Returns an empty array if the subdirectory does not exist. * Directories within `files/` are skipped. */ export declare function collectFiles(contentDir: string): string[]; /** * Walk dir for Markdown files and turn each into one or more wiki Page(s). * `raw: true` frontmatter sends the body verbatim (CSS/JS/template wikitext * that must not go through pandoc); otherwise the body is converted * markdown -> mediawiki and `categories:` frontmatter is appended as * `[[Category:X]]` tags. Each `redirect_from:` entry produces an extra * `#REDIRECT [[title]]` page. */ export declare function convertDir(dir: string): Promise;