import type { SitemapElements } from "./sitemap.js"; export type XMLAttributes = Record; type AllXMLChildren = SitemapElements | XMLDeclarationType | XMLStyleSheet; export interface XMLType { readonly tag: T; readonly attributes: A; } export declare class XMLElement implements XMLType { readonly tag: T; readonly attributes: A; readonly children: Array; constructor(tag: T, attributes: A, children: Array); } export declare class VoidXMLElement implements XMLType { readonly tag: T; readonly attributes: A; constructor(tag: T, attributes: A); } export declare class XMLDeclaration implements XMLType { readonly tag: T; readonly attributes: A; constructor(tag: T, attributes: A); } export type XMLDeclarationType = XMLDeclaration<"xml", { version: string; encoding: string; }>; export declare const xmlDoctype: XMLDeclarationType; export type XMLStyleSheet = XMLDeclaration<"xml-stylesheet", { href: string; type: string; }>; export declare const xmlStylesheet: (href: string, type: string) => XMLStyleSheet; export declare class XMLDocument { readonly children: Array; constructor(doctype: XMLDeclarationType, children: Array); } export {};