import blit from '@jimp/plugin-blit'; import blur from '@jimp/plugin-blur'; import circle from '@jimp/plugin-circle'; import color from '@jimp/plugin-color'; import contain from '@jimp/plugin-contain'; import cover from '@jimp/plugin-cover'; import crop from '@jimp/plugin-crop'; import displace from '@jimp/plugin-displace'; import dither from '@jimp/plugin-dither'; import fisheye from '@jimp/plugin-fisheye'; import flip from '@jimp/plugin-flip'; import gaussian from '@jimp/plugin-gaussian'; import invert from '@jimp/plugin-invert'; import mask from '@jimp/plugin-mask'; import normalize from '@jimp/plugin-normalize'; import print from '@jimp/plugin-print'; import resize from '@jimp/plugin-resize'; import rotate from '@jimp/plugin-rotate'; import scale from '@jimp/plugin-scale'; import shadow from '@jimp/plugin-shadow'; import threshold from '@jimp/plugin-threshold'; type BlitRet = ReturnType; type BlurRet = ReturnType; type CircleRet = ReturnType; type ColorRet = ReturnType; type ContainRet = ReturnType; type CoverRet = ReturnType; type CropRet = ReturnType; type DisplaceRet = ReturnType; type DitherRet = ReturnType; type FlipRet = ReturnType; type FisheyeRet = ReturnType; type GaussianRet = ReturnType; type InvertRet = ReturnType; type MaskRet = ReturnType; type NormalizeRet = ReturnType; type PrintRet = ReturnType; type ResizeRet = ReturnType; type RotateRet = ReturnType; type ScaleRet = ReturnType; type ShadowRet = ReturnType; type ThresholdRet = ReturnType; /** * This is made union and not intersection to avoid issues with * `IllformedPlugin` and `WellFormedPlugin` when using typings with Jimp * generic * * In reality, this should be an intersection but our type data isn't * clever enough to figure out what's a class and what's not/etc */ type Plugins = | BlitRet | BlurRet | CircleRet | ColorRet | ContainRet | CoverRet | CropRet | DisplaceRet | DitherRet | FlipRet | FisheyeRet | GaussianRet | InvertRet | MaskRet | NormalizeRet | PrintRet | ResizeRet | RotateRet | ScaleRet | ShadowRet | ThresholdRet; export default function(): Plugins;