/** * Plugin options. */ interface Options { /** * Base URI * @default 'http://localhost/' */ hostname: string; /** * Generated routes from vite-plugin-pages * @default [] */ routes: any[]; /** * Array of i18n languages. * Example: { * defaultLanguage: 'fr' * languages: ['fr', 'en', 'es'] * } * @default undefined */ i18n?: { defaultLanguage?: string; languages: string[]; }; /** * Excluded routes paths * @default [] */ exclude: (string | RegExp)[]; /** * File name * @default 'sitemap' */ filename: string; /** * Destination path * @default 'public' */ dest: string; /** * Change frequency option for sitemap * @default 'daily' */ changefreq: string; /** * Priority option for sitemap * @default 1 */ priority: number; /** * Last modification option for sitemap * @default new Date() */ lastmod: Date; /** * Converts XML into a human readable format * @default false */ readable: boolean; /** * Is Nuxt.js style route naming * @default false */ nuxtStyle: boolean; /** * Allow robots crawl (in robots.txt file) * @default true */ allowRobots: boolean; } type UserOptions = Partial; declare function generateSitemap(options: UserOptions): void; export { generateSitemap as default };