import type { Page } from "./convert.js"; /** Produced by cli.ts from parsed CLI args; consumed by deploy(). */ export interface DeployOptions { wiki: string; user: string; password: string; } /** * Authenticate against the MediaWiki Action API and write every page via * `action=edit` - the same call a human edit through the wiki UI produces. * Sequence: fetch a login token, clientlogin, fetch a CSRF token, upload any * files, then write pages in batches of EDIT_CONCURRENCY at a time. The CSRF * token isn't single-use, so concurrent edits against the same session are * safe (same technique bot frameworks use for bulk edits) - each edit is * independently idempotent, so re-running overwrites with current content * regardless of ordering. Concurrency is capped rather than unbounded since * this typically targets a single modest droplet running MediaWiki + MySQL * in Docker, not a scaled deployment. */ export declare function deploy(pages: Page[], opts: DeployOptions, files?: string[]): Promise;