23 lines
765 B
TypeScript
23 lines
765 B
TypeScript
import type { AstroConfig } from 'astro';
|
|
import type { SitemapItem } from './index.js';
|
|
type WriteSitemapConfig = {
|
|
filenameBase: string;
|
|
hostname: string;
|
|
sitemapHostname?: string;
|
|
customSitemaps?: string[];
|
|
sourceData: SitemapItem[];
|
|
destinationDir: string;
|
|
publicBasePath?: string;
|
|
limit?: number;
|
|
xslURL?: string;
|
|
lastmod?: string;
|
|
namespaces?: {
|
|
news?: boolean;
|
|
xhtml?: boolean;
|
|
image?: boolean;
|
|
video?: boolean;
|
|
};
|
|
};
|
|
export declare function writeSitemap({ filenameBase, hostname, sitemapHostname, sourceData, destinationDir, limit, customSitemaps, publicBasePath, xslURL: xslUrl, lastmod, namespaces, }: WriteSitemapConfig, astroConfig: AstroConfig): Promise<void>;
|
|
export {};
|