import type { XmlNode } from './tree'; export interface SerializeOptions { /** Emit `` declaration. Defaults to true. */ xmlDeclaration?: boolean; /** `standalone` attribute on the declaration. Defaults to 'yes'. */ standalone?: 'yes' | 'no' | 'omit'; } /** * Serialize an {@link XmlNode} tree into a UTF-8 byte payload. The * inverse of {@link parseXml}: `parseXml(serializeXml(n))` yields a * tree structurally equivalent to `n` modulo attribute insertion order * (which both directions preserve on Node 18+ / V8). */ export declare function serializeXml(root: XmlNode, opts?: SerializeOptions): Uint8Array;