27 lines
770 B
Plaintext
27 lines
770 B
Plaintext
|
import { IconifyIcon } from '@iconify/types';
|
||
|
import { IconifyIconBuildResult } from './build.js';
|
||
|
import '../customisations/defaults.js';
|
||
|
import './viewbox.js';
|
||
|
|
||
|
/**
|
||
|
* 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 };
|