declare module 'svgson' { export interface INode { name: string type: string value: string attributes: Record children: INode[] } interface IParseOptions { transformNode?: (node: INode) => INode camelcase?: boolean } type TEscape = (text?: string) => string interface IStringifyOptions { transformAttr?: (key: string, value: string, escape: TEscape) => string transformNode?: (node: INode) => INode selfClose?: boolean } function parse(input: string, options?: IParseOptions): Promise function parseSync(input: string, options?: IParseOptions): INode function stringify(ast: INode, options?: IStringifyOptions): string }