export interface WikiResult {
    wiki_dir: string;
    pages: number;
    communities: number;
    hubs: number;
    surprises: number;
    degraded: boolean;
    degraded_reasons?: string[];
}
export declare function generateWiki(repo: string, options?: {
    focus?: string;
    output_dir?: string;
    journal_mode?: "skip" | "refresh-overview" | "append" | "full";
    journal_since_ref?: string;
    journal_bulk_fill?: boolean;
}): Promise<WikiResult>;
/**
 * Delete `.md` files under `outputDir` that are not part of the freshly generated
 * page set, while skipping any entry protected by `protectedPrefixes`.
 *
 * Contract invariant — `protectedPrefixes` are plain path-prefix strings, NOT globs:
 * - Skip `f` where `f === p` OR `f.startsWith(p + "/")` for any `p ∈ protectedPrefixes`.
 * - Skip entries where `!f.endsWith(".md")` (directories and non-markdown files).
 * - Skip entries present in `knownFiles`.
 * - Everything else is `unlink()`-ed.
 *
 * Currently called with a non-recursive `readdir`, but the guard is defence-in-depth
 * for any future refactor that surfaces nested paths such as `"journal/phases/x.md"`
 * (see wiki-journal spec D1 failure mode).
 *
 * @returns absolute paths of the files that were deleted
 */
export declare function pruneStaleWikiFiles(outputDir: string, knownFiles: Set<string>, protectedPrefixes: string[]): Promise<string[]>;
//# sourceMappingURL=wiki-tools.d.ts.map