import { SitemapChangeFreq, SitemapEntry } from '../types.js'; /** * Pure row → `SitemapEntry` mappers shared by the DB-backed collectors. Kept separate from the * collectors themselves (which query the pool) so the mapping logic is unit-tested without a DB. * All entity collectors JOIN `url_rewrite`, so their rows share this shape (design §3.3). */ export interface EntityUrlRow { /** `url_rewrite.request_path` — the canonical friendly path. */ request_path: string; /** The entity's `updated_at` (drives ``). */ updated_at: string | Date | null; } export interface MapEntityOptions { changefreq?: SitemapChangeFreq; priority?: number; } /** Map DB rows (entity JOIN url_rewrite) to canonical sitemap entries. Rows without a path are skipped. */ export declare function mapEntityRows(rows: EntityUrlRow[], options?: MapEntityOptions): SitemapEntry[]; /** A configured static path (e.g. the homepage `/`). */ export interface StaticPathSpec { path: string; lastmod?: string; changefreq?: SitemapChangeFreq; priority?: number; } /** Map configured static paths to entries. Non-root-relative paths are skipped. */ export declare function mapStaticPaths(specs: StaticPathSpec[]): SitemapEntry[];