@realfavicongenerator/generate-favicon
Version:
Generate a favicon
12 lines (11 loc) • 895 B
TypeScript
import { Svg } from "@svgdotjs/svg.js";
import { ImageAdapter } from "./adapter";
export declare const stringToSvg: (svg: string, imageAdapeter: ImageAdapter) => Svg;
export declare const urlToSvg: (url: string, imageAdapter: ImageAdapter) => Promise<Svg>;
export declare const blobToDataUrl: (blob: Blob) => Promise<string>;
export declare const bitmapToSvg: (binaryData: ArrayBuffer, mimeType: string, imageAdapter: ImageAdapter) => Promise<Svg>;
export declare const httpUrlToDataUrl: (url: string, imageAdapter: ImageAdapter) => Promise<string>;
export declare const anyUrlToSvg: (url: string, imageAdapter: ImageAdapter) => Promise<Svg>;
export declare const dataUrlToSvg: (dataUrl: string, imageAdapter: ImageAdapter) => Promise<Svg>;
export declare const makeFluidSvg: (svg: Svg) => Svg;
export declare const scaleSvg: (svg: Svg, widthHeight: number, imageAdapeter: ImageAdapter) => Svg;