import { SitemapConfig } from './config.js'; import { SitemapStorage } from './storage.js'; import { SitemapCollector } from './types.js'; export interface GenerateOptions { /** Rebuild even when the fingerprint is unchanged. */ force?: boolean; collectors?: SitemapCollector[]; storage?: SitemapStorage; config?: SitemapConfig; baseUrl?: string; locales?: string[]; defaultLocale?: string; /** Epoch-ms clock (default `Date.now`) — injectable for deterministic tests. */ clock?: () => number; } export interface GenerateResult { /** false ⇒ skipped because the fingerprint was unchanged and the cache is fresh. */ generated: boolean; files: string[]; fingerprint: string; urlCount: number; } /** * Generate the sitemap set (index + per-collector children) into storage, skipping the work when * a cheap fingerprint shows nothing changed and the cache is fresh. See wiki/sitemap-design.md §2–§5. */ export declare function generateSitemap(options?: GenerateOptions): Promise;