UNPKG

435 BTypeScriptView Raw
1/// <reference types="node" />
2import Api from "./parser";
3import { ISize } from "image-size/dist/types/interface";
4export declare namespace DataURI {
5 interface CSSConfig {
6 width?: boolean;
7 height?: boolean;
8 "background-size"?: boolean;
9 class?: string;
10 dimensions?: ISize;
11 }
12 type Input = string | Buffer;
13 type Callback = (err?: Error, content?: string, instance?: Api) => any;
14}