import { IOConfig } from './types.js'; /** * Parse an SVG string into an SVGSVGElement (Node.js, async). * * @throws Error if the root element is not . */ declare const parseSvgServer: (svgString: string, config?: IOConfig) => Promise; /** * Serialize an SVGSVGElement back to string (Node.js, async). */ declare const serializeSvgServer: (element: SVGSVGElement, config?: IOConfig) => Promise; /** * Universal parser: auto-chooses browser or Node implementation. */ declare const parseSvg: (svgString: string, config?: IOConfig) => SVGSVGElement | Promise; /** * Universal serializer: auto-chooses browser or Node implementation. */ declare const serializeSvg: (element: SVGSVGElement, config?: IOConfig) => string | Promise; /** * Load an SVG from a string, File, Blob, or URL. * * @remarks * - Browser: supports string, File, Blob, and URL. * - Node.js: supports string and URL (via fetch). * - Does **not** handle fs/path directly — keeps API universal. * * @throws Error if input is invalid or root element is not . */ declare const loadSvg: (input: string | File | Blob | URL, config?: IOConfig) => Promise; export { loadSvg, parseSvg, parseSvgServer, serializeSvg, serializeSvgServer };