1 | /// <reference types="node"/>
|
2 |
|
3 | declare const isSvg: {
|
4 | /**
|
5 | Check if a string or buffer is [SVG](https://en.wikipedia.org/wiki/Scalable_Vector_Graphics).
|
6 |
|
7 | @param input - The data to check.
|
8 | @returns Whether `input` is SVG or not.
|
9 |
|
10 | @example
|
11 | ```
|
12 | import isSvg = require('is-svg');
|
13 |
|
14 | isSvg('<svg xmlns="http://www.w3.org/2000/svg"><path fill="#00CD9F"/></svg>');
|
15 | //=> true
|
16 | ```
|
17 | */
|
18 | (input: string | Buffer): boolean;
|
19 |
|
20 | // TODO: Remove this for the next major release, refactor the whole definition to:
|
21 | // declare function isSvg(input: string | Buffer): boolean;
|
22 | // export = isSvg;
|
23 | default: typeof isSvg;
|
24 | };
|
25 |
|
26 | export = isSvg;
|