UNPKG

436 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 backgroundSize?: boolean;
9 className?: string;
10 dimensions?: ISize;
11 }
12 type Input = string | Buffer;
13 type Callback = (err?: Error, content?: string, instance?: Api) => any;
14}