/** One entry in a sitemap: a page path (joined to the origin) and optional last-modified date. */ export type SitemapEntry = { /** * Page path, e.g. `/docs/intro`. Joined to the origin with exactly one slash * between, so the leading slash is optional. */ path: string; /** Last-modified date; an ISO string or `YYYY-MM-DD`. Only the date is emitted. */ lastmod?: string; }; /** * Build a sitemap.xml body from a list of pages. Framework-agnostic: wire it * into a SvelteKit `src/routes/sitemap.xml/+server.ts` that maps the generated * `svelte-docsmith/content` index (plus any non-doc routes) into entries. * * ```ts * import { docs } from 'svelte-docsmith/content'; * import { generateSitemap } from 'svelte-docsmith'; * * export const prerender = true; * export function GET() { * const body = generateSitemap('https://my-docs.dev', [ * { path: '/' }, * ...docs.map((d) => ({ path: d.path, lastmod: d.lastUpdated })) * ]); * return new Response(body, { headers: { 'content-type': 'application/xml' } }); * } * ``` */ export declare function generateSitemap(origin: string, entries: SitemapEntry[]): string;