import { GetServerSidePropsContext } from 'next'; import { SitemapSchemaUrlElement } from './sitemapUtils.js'; /** * The pathname to the root sitemap index. */ export declare const SITEMAP_INDEX_PATH = "/sitemap.xml"; /** * The pathname to the Next.js pages sitemap file. We may want to make this * configurable in the future. */ export declare const FAUST_PAGES_PATHNAME = "/sitemap-faust-pages.xml"; /** * the "pages" config type */ export interface NextJSPage extends Omit { /** * The relative URL of the Next.js page. * * @example /about */ path: string; } export type GetSitemapPropsConfig = { /** * The URL to your Faust site */ frontendUrl: string; /** * A list of pathnames to ignore when proxying sitemaps. */ sitemapPathsToIgnore?: string[]; /** * The path to the sitemap index file in WordPress. */ sitemapIndexPath?: string; /** * Next.js pages you want included in you sitemap. When provided, an index * will be created specifically for these pages. */ pages?: NextJSPage[]; }; /** * Validates the structure of the user defined config. * * @param {Partial} config The user provided config */ export declare function validateConfig(config: Partial): void; export declare function getSitemapProps(ctx: GetServerSidePropsContext, config: GetSitemapPropsConfig): Promise<{ notFound: boolean; props?: undefined; } | { props: {}; notFound?: undefined; }>;