import { EvershopRequest } from '../../../../../types/request.js'; import { EvershopResponse } from '../../../../../types/response.js'; import { SitemapConfig } from '../../../services/sitemap/config.js'; /** * Injectable dependencies, so the handler is unit-testable without a DB / real fs. */ export interface ServeSitemapDeps { ensureSitemap: (fileName: string) => Promise; getConfig: () => SitemapConfig; /** The `robotsTxt` setting override, or null when unset. */ getRobotsOverride: () => Promise; getBaseUrl: () => string; } /** * Cold-path handler for `/sitemap.xml`, `/sitemap-*.xml` and `/robots.txt`. Fires only on a * would-be-404 — when a physical `public/` file exists, `publicStatic` already served it and we * never run (wiki/sitemap-design.md §2). Matches the canonical locale-stripped path so * `/de/sitemap.xml` resolves too. Active (3-arg): sends the response and returns without `next()`, * or calls `next()` to fall through to the 404. */ export declare function serveSitemapRequest(request: EvershopRequest, response: EvershopResponse, next: (err?: unknown) => void, deps: ServeSitemapDeps): Promise; declare const _default: (request: EvershopRequest, response: EvershopResponse, next: (err?: unknown) => void) => Promise; export default _default;