/** * TypeScript representation of the "URL" element from the Sitemap * schema * * @link https://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd */ export interface SitemapSchemaUrlElement { /** * The location URI of a document. The URI must conform to RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt). */ loc: string; /** * The date the document was last modified. The date must conform to the * W3C DATETIME format (http://www.w3.org/TR/NOTE-datetime). * Example: 2005-05-10 * Lastmod may also contain a timestamp. Example: 2005-05-10T17:33:30+08:00 */ lastmod?: string; /** * Indicates how frequently the content at a particular URL is likely * to change. The value "always" should be used to describe documents that * change each time they are accessed. The value "never" should be used to * describe archived URLs. Please note that web crawlers may not necessarily * crawl pages marked "always" more often. Consider this element as a * friendly suggestion and not a command. */ changefreq?: 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never'; /** * The priority of a particular URL relative to other pages on the same site. * The value for this element is a number between 0.0 and 1.0 * where 0.0 identifies the lowest priority page(s). The default priority of * a page is 0.5. Priority is used to select between pages on your site. * Setting a priority of 1.0 for all URLs will not help you, as the relative * priority of pages on your site is what will be considered. */ priority?: number; } /** * TypeScript representation of the "sitemap" element from the * siteindex schema * * @link https://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd */ export interface SitemapSchemaSitemapElement { /** * The location URI of a sitemap. The URI must conform to RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt). */ loc: string; /** * The date the document was last modified. The date must conform to the * W3C DATETIME format (http://www.w3.org/TR/NOTE-datetime). Example: 2005-05-10 * Lastmod may also contain a timestamp. Example: 2005-05-10T17:33:30+08:00 */ lastmod?: string; } /** * Creates an XML sitemap index file from a list of sitemap URLs * * @param {SitemapSchemaSitemapElement[]} sitemaps A list of sitemap URL objects * @returns */ export declare function createSitemapIndex(sitemaps: SitemapSchemaSitemapElement[]): Response; /** * Creates an XML Sitemap from a list of URLs * * @param {SitemapSchemaUrlElement[]} urls A list of URL objects * @returns {Response} */ export declare function createSitemap(urls: SitemapSchemaUrlElement[]): Response;