piclist
Version:
Modified PicGo core, A tool for picture uploading
6 lines (5 loc) • 414 B
TypeScript
import type { IImgSize, IPathTransformedImgInfo, IPicGo } from '../../types';
export declare const getImageSize: (file: Buffer) => IImgSize;
export declare const getFSFile: (filePath: string) => Promise<IPathTransformedImgInfo>;
export declare function getImageTypeByMagicNumber(buffer: Buffer | Uint8Array): string;
export declare const getURLFile: (url: string, ctx: IPicGo) => Promise<IPathTransformedImgInfo>;