datauri
Version:
Create DataURI scheme easily
15 lines (14 loc) • 436 B
TypeScript
/// <reference types="node" />
import Api from './parser';
import { ISize } from 'image-size/dist/types/interface';
export declare namespace DataURI {
interface CSSConfig {
width?: boolean;
height?: boolean;
backgroundSize?: boolean;
className?: string;
dimensions?: ISize;
}
type Input = string | Buffer;
type Callback = (err?: Error, content?: string, instance?: Api) => any;
}