Files
infocom-systems-design/node_modules/@iconify/utils/lib/svg/parse.d.ts
2025-10-03 22:27:28 +03:00

22 lines
700 B
TypeScript

import { IconifyIconBuildResult } from "./build.js";
import { IconifyIcon } from "@iconify/types";
/**
* Parsed SVG content
*/
interface ParsedSVGContent {
attribs: Record<string, string>;
body: string;
}
/**
* Extract attributes and content from SVG
*/
declare function parseSVGContent(content: string): ParsedSVGContent | undefined;
/**
* Convert parsed SVG to IconifyIconBuildResult
*/
declare function buildParsedSVG(data: ParsedSVGContent): IconifyIconBuildResult | undefined;
/**
* Convert parsed SVG to IconifyIcon
*/
declare function convertParsedSVG(data: ParsedSVGContent): IconifyIcon | undefined;
export { ParsedSVGContent, buildParsedSVG, convertParsedSVG, parseSVGContent };