import { Readable } from 'node:stream';
export type ParsedSitemap = {
    type: 'index' | 'urlset';
    locations: string[];
};
export declare class SitemapXmlError extends Error {
    constructor(message: string, options?: ErrorOptions);
}
/** Parse a sitemap URL set or sitemap index from an XML stream. */
export declare function parseSitemap(source: Readable): Promise<ParsedSitemap>;
