1 | declare module "data-urls" {
|
2 | import MIMEType from "whatwg-mimetype";
|
3 | import { URLRecord } from "whatwg-url";
|
4 |
|
5 | function dataUrls(url: string): dataUrls.DataURL | null;
|
6 |
|
7 | namespace dataUrls {
|
8 | export interface DataURL {
|
9 | mimeType: MIMEType;
|
10 | body: Buffer;
|
11 | }
|
12 |
|
13 | export function fromURLRecord(url: URLRecord): DataURL | null;
|
14 | }
|
15 |
|
16 | export = dataUrls;
|
17 | }
|