| Server IP : 185.208.173.17 / Your IP : 87.236.161.98 Web Server : Microsoft-IIS/10.0 System : Windows NT SRV8576125506 10.0 build 26100 (Windows Server 2016) AMD64 User : IUSR ( 0) PHP Version : 7.4.13 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/parsmega.nuxt/node_modules/sitemap/dist/lib/ |
Upload File : |
import { ICallback, ISitemapIndexItemOptions, SitemapItemOptions } from './types';
/**
* Shortcut for `new SitemapIndex (...)`.
* Create several sitemaps and an index automatically from a list of urls
*
* @param {Object} conf
* @param {String|Array} conf.urls
* @param {String} conf.targetFolder
* @param {String} conf.hostname
* @param {Number} conf.cacheTime
* @param {String} conf.sitemapName
* @param {Number} conf.sitemapSize
* @param {String} conf.xslUrl
* @return {SitemapIndex}
*/
export declare function createSitemapIndex(conf: {
urls: SitemapIndex["urls"];
targetFolder: SitemapIndex["targetFolder"];
hostname?: SitemapIndex["hostname"];
cacheTime?: SitemapIndex["cacheTime"];
sitemapName?: SitemapIndex["sitemapName"];
sitemapSize?: SitemapIndex["sitemapSize"];
xslUrl?: SitemapIndex["xslUrl"];
gzip?: boolean;
callback?: SitemapIndex["callback"];
}): SitemapIndex;
/**
* Builds a sitemap index from urls
*
* @param {Object} conf
* @param {Array} conf.urls
* @param {String} conf.xslUrl
* @param {String} conf.xmlNs
* @param {String} conf.lastmod When the referenced sitemap was last modified
* @return {String} XML String of SitemapIndex
*/
export declare function buildSitemapIndex(conf: {
urls: (ISitemapIndexItemOptions | string)[];
xslUrl?: string;
xmlNs?: string;
lastmod?: number | string;
}): string;
/**
* Sitemap index (for several sitemaps)
*/
declare class SitemapIndex {
urls: (string | SitemapItemOptions)[];
targetFolder: string;
hostname?: string | undefined;
sitemapSize?: number | undefined;
xslUrl?: string | undefined;
callback?: ICallback<Error, boolean> | undefined;
sitemapName: string;
sitemapId: number;
sitemaps: string[];
chunks: (string | SitemapItemOptions)[][];
cacheTime?: number;
/**
* @param {String|Array} urls
* @param {String} targetFolder
* @param {String} hostname optional
* @param {Number} cacheTime optional in milliseconds
* @param {String} sitemapName optional
* @param {Number} sitemapSize optional This limit is defined by Google. See: https://sitemaps.org/protocol.php#index
* @param {Number} xslUrl optional
* @param {Boolean} gzip optional
* @param {Function} callback optional
*/
constructor(urls?: (string | SitemapItemOptions)[], targetFolder?: string, hostname?: string | undefined, cacheTime?: number, sitemapName?: string, sitemapSize?: number | undefined, xslUrl?: string | undefined, gzip?: boolean, callback?: ICallback<Error, boolean> | undefined);
}
export {};