UNPKG

jimp

Version:

An image processing library written entirely in JavaScript.

1,392 lines • 110 kB
/**
 * @module jimp
 */
import bmp, { msBmp } from "@jimp/js-bmp";
import gif from "@jimp/js-gif";
import ico, { msIcon } from "@jimp/js-ico";
import jpeg from "@jimp/js-jpeg";
import png from "@jimp/js-png";
import tiff from "@jimp/js-tiff";
import * as blit from "@jimp/plugin-blit";
import * as blur from "@jimp/plugin-blur";
import * as border from "@jimp/plugin-border";
import * as circle from "@jimp/plugin-circle";
import * as color from "@jimp/plugin-color";
import * as contain from "@jimp/plugin-contain";
import * as cover from "@jimp/plugin-cover";
import * as crop from "@jimp/plugin-crop";
import * as displace from "@jimp/plugin-displace";
import * as dither from "@jimp/plugin-dither";
import * as draw from "@jimp/plugin-draw";
import * as fisheye from "@jimp/plugin-fisheye";
import * as flip from "@jimp/plugin-flip";
import * as hash from "@jimp/plugin-hash";
import * as lut from "@jimp/plugin-lut";
import * as mask from "@jimp/plugin-mask";
import * as morphology from "@jimp/plugin-morphology";
import * as print from "@jimp/plugin-print";
import * as resize from "@jimp/plugin-resize";
import * as rotate from "@jimp/plugin-rotate";
import * as threshold from "@jimp/plugin-threshold";
import * as quantize from "@jimp/plugin-quantize";
import { type JimpEdit as CoreJimpEdit } from "@jimp/core";
export declare const defaultPlugins: ({
    blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
} | {
    blur<I extends import("@jimp/types").JimpClass>(image: I, r: number): I;
    gaussian<I extends import("@jimp/types").JimpClass>(image: I, r: number): I;
    sharpen<I extends import("@jimp/types").JimpClass>(image: I, options: blur.SharpenOptions): I;
    median<I extends import("@jimp/types").JimpClass>(image: I, radius: number): I;
    bilateral<I extends import("@jimp/types").JimpClass>(image: I, options?: blur.BilateralOptions): I;
} | {
    roundCorners<I extends import("@jimp/types").JimpClass>(image: I, options: border.RoundCornersOptions): I;
    border<I extends import("@jimp/types").JimpClass>(image: I, options: border.BorderOptions): I;
    boxShadow<I extends import("@jimp/types").JimpClass>(image: I, options?: border.BoxShadowOptions): I;
} | {
    circle<I extends import("@jimp/types").JimpClass>(image: I, options?: circle.CircleOptions): I;
} | {
    normalize<I extends import("@jimp/types").JimpClass>(image: I): I;
    invert<I extends import("@jimp/types").JimpClass>(image: I): I;
    brightness<I extends import("@jimp/types").JimpClass>(image: I, val: number): I;
    contrast<I extends import("@jimp/types").JimpClass>(image: I, val: number): I;
    exposure<I extends import("@jimp/types").JimpClass>(image: I, stops: number): I;
    vibrance<I extends import("@jimp/types").JimpClass>(image: I, amount: number): I;
    posterize<I extends import("@jimp/types").JimpClass>(image: I, n: number): I;
    greyscale<I extends import("@jimp/types").JimpClass>(image: I): I;
    opacity<I extends import("@jimp/types").JimpClass>(image: I, f: number): I;
    sepia<I extends import("@jimp/types").JimpClass>(image: I, amount?: number): I;
    gradientMap<I extends import("@jimp/types").JimpClass>(image: I, options: color.GradientMapOptions): I;
    fade<I extends import("@jimp/types").JimpClass>(image: I, f: number): I;
    convolution<I extends import("@jimp/types").JimpClass>(image: I, options: number[][] | {
        kernel: number[][];
        edgeHandling?: import("@jimp/types").Edge | undefined;
        divisor?: number | undefined;
        bias?: number | undefined;
    }): I;
    opaque<I extends import("@jimp/types").JimpClass>(image: I): I;
    pixelate<I extends import("@jimp/types").JimpClass>(image: I, options: number | {
        size: number;
        x?: number | undefined;
        y?: number | undefined;
        w?: number | undefined;
        h?: number | undefined;
    }): I;
    convolute<I extends import("@jimp/types").JimpClass>(image: I, options: number[][] | {
        kernel: number[][];
        x?: number | undefined;
        y?: number | undefined;
        w?: number | undefined;
        h?: number | undefined;
        divisor?: number | undefined;
        bias?: number | undefined;
        preserveAlpha?: boolean | undefined;
    }): I;
    color<I extends import("@jimp/types").JimpClass>(image: I, actions: color.ColorAction[]): I;
    grain<I extends import("@jimp/types").JimpClass>(image: I, options?: color.GrainOptions): I;
} | {
    resize<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ResizeOptions): I;
    scale<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ScaleOptions): I;
    scaleToFit<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ScaleToFitOptions): I;
} | {
    contain<I extends import("@jimp/types").JimpClass>(image: I, options: contain.ContainOptions): I;
} | {
    cover<I extends import("@jimp/types").JimpClass>(image: I, options: cover.CoverOptions): I;
    coverRect<I extends import("@jimp/types").JimpClass>(image: I, options: cover.CoverRectOptions): {
        x: number;
        y: number;
        w: number;
        h: number;
    };
} | {
    crop<I extends import("@jimp/types").JimpClass>(image: I, options: crop.CropOptions): I;
    autocropRect<I extends import("@jimp/types").JimpClass>(image: I, options?: crop.AutocropOptions): {
        x: number;
        y: number;
        w: number;
        h: number;
    };
    autocrop<I extends import("@jimp/types").JimpClass>(image: I, options?: crop.AutocropOptions): I;
} | {
    displace<I extends import("@jimp/types").JimpClass>(image: I, options: displace.DisplaceOptions): I;
} | {
    dither<I extends import("@jimp/types").JimpClass>(image: I, options?: dither.DitherOptions): I;
} | {
    drawLine<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawLineOptions): I;
    drawRect<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawRectOptions): I;
    drawEllipse<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawEllipseOptions): I;
    drawPolygon<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawPolygonOptions): I;
    drawPath<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawPathOptions): I;
    floodFill<I extends import("@jimp/types").JimpClass>(image: I, options: draw.FloodFillOptions): I;
} | {
    fisheye<I extends import("@jimp/types").JimpClass>(image: I, options?: fisheye.FisheyeOptions): I;
} | {
    flip<I extends import("@jimp/types").JimpClass>(image: I, options: flip.FlipOptions): I;
} | {
    pHash<I extends import("@jimp/types").JimpClass>(image: I, options?: hash.PHashOptions): string;
    hash<I extends import("@jimp/types").JimpClass>(image: I, base?: number, options?: hash.PHashOptions): string;
    distanceFromHash<I extends import("@jimp/types").JimpClass>(image: I, compareHash: string, options?: hash.PHashOptions): number;
    blurhash<I extends import("@jimp/types").JimpClass>(image: I, options?: hash.BlurhashOptions): string;
} | {
    colorGrade<I extends import("@jimp/types").JimpClass>(image: I, lut: lut.Lut | import("@jimp/types").JimpClass, options?: lut.ColorGradeOptions): I;
} | {
    mask<I extends import("@jimp/types").JimpClass>(image: I, options: mask.MaskOptions): I;
} | {
    erode<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
    dilate<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
    open<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
    close<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
} | {
    print<I extends import("@jimp/types").JimpClass>(image: I, options: print.PrintOptions & print.PrintFontOptions<I>): I;
} | {
    rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
    affine<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.AffineOptions): I;
    skew<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.SkewOptions): I;
} | {
    threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
} | {
    quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
    palette<I extends import("@jimp/types").JimpClass>(image: I, count: number, options?: quantize.PaletteOptions): quantize.PaletteColor[];
    dominantColor<I extends import("@jimp/types").JimpClass>(image: I, options?: quantize.PaletteOptions): number | undefined;
})[];
export declare const defaultFormats: (typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff)[];
/** Convenience object for getting the MIME types of the default formats */
export declare const JimpMime: {
    bmp: "image/bmp";
    gif: "image/gif";
    ico: "image/x-icon";
    jpeg: "image/jpeg";
    png: "image/png";
    tiff: "image/tiff";
};
/**
 * @class
 *
 * A `Jimp` class enables you to:class
 *
 * - Read an image into a "bit map" (a collection of pixels)
 * - Modify the bit map through methods that change the pixels
 * - Write the bit map back to an image buffer
 *
 * @example
 *
 * #### Basic
 *
 * You can use the Jimp class to make empty images.
 * This is useful for when you want to create an image that composed of other images on top of a background.
 *
 * ```ts
 * import { Jimp } from "jimp";
 *
 * const image = new Jimp({ width: 256, height: 256, color: 0xffffffff });
 * const image2 = new Jimp({ width: 100, height: 100, color: 0xff0000ff });
 *
 * image.composite(image2, 50, 50);
 * ```
 *
 * #### Node
 *
 * You can use jimp in Node.js.
 * For example you can read an image from a file and resize it and
 * then write it back to a file.
 *
 * ```ts
 * import { Jimp } from "jimp";
 * import { promises as fs } from "fs";
 *
 * const image = await Jimp.read("test/image.png");
 *
 * image.resize({ w: 256, h: 100 });
 * image.greyscale();
 *
 * await image.write('test/output.png');
 * ```
 *
 * #### Browser
 *
 * You can use jimp in the browser by reading files from URLs
 *
 * ```ts
 * import { Jimp } from "jimp";
 *
 * const image = await Jimp.read("https://upload.wikimedia.org/wikipedia/commons/0/01/Bot-Test.jpg");
 *
 * image.resize({ w: 256, h: 100 });
 * image.greyscale();
 *
 * const canvas = document.createElement("canvas");
 *
 * canvas.width = image.bitmap.width;
 * canvas.height = image.bitmap.height;
 *
 * const ctx = canvas.getContext("2d");
 * const imageData = new ImageData(
 *   new Uint8ClampedArray(image.bitmap.data),
 *   image.bitmap.width,
 *   image.bitmap.height
 * );
 *
 * ctx.putImageData(imageData, 0, 0);
 *
 * document.body.appendChild(canvas);
 * ```
 */
export declare const Jimp: {
    new (options?: import("@jimp/core").JimpConstructorOptions): {
        bitmap: import("@jimp/types").Bitmap;
        background: number;
        formats: import("@jimp/types").Format<any>[];
        mime?: string;
        iccProfile?: Buffer;
        inspect(): string;
        toString(): string;
        readonly width: number;
        readonly height: number;
        readonly colorSpace: import("@jimp/types").ColorSpaceName | "custom";
        toColorSpace<S extends import("@jimp/types").JimpClass>(this: S, colorSpace: import("@jimp/types").ColorSpaceName): S;
        getBuffer<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<Buffer<ArrayBufferLike>>;
        getBase64<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<string>;
        write<Path extends string>(path: Path, options?: import("@jimp/core").GetOptionsForPath<Path, Record<"bmp", "image/bmp"> | Record<"gif", "image/gif"> | Record<"jpeg", "image/jpeg"> | Record<"png", "image/png"> | Record<"tiff", "image/tiff"> | Record<"vnd.microsoft.icon", "image/vnd.microsoft.icon"> | Record<"x-icon", "image/x-icon"> | Record<"x-ms-bmp", "image/x-ms-bmp">, Record<"image/bmp", import("@jimp/js-bmp").EncodeOptions> | Record<"image/gif", undefined> | Record<"image/jpeg", import("@jimp/js-jpeg").JPEGOptions> | Record<"image/png", import("@jimp/js-png").PNGOptions> | Record<"image/tiff", undefined> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").EncodeOptions>> | undefined): Promise<void>;
        clone<S extends import("@jimp/types").JimpClass>(this: S): S;
        apply<S extends import("@jimp/types").JimpClass>(this: S, edits: CoreJimpEdit<S>[]): S;
        getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
        getPixelColor(x: number, y: number): number;
        setPixelColor<S extends import("@jimp/types").JimpClass>(this: S, hex: number, x: number, y: number): S;
        hasAlpha(): boolean;
        composite<S extends import("@jimp/types").JimpClass>(this: S, src: import("@jimp/core").CompositeSource, x?: number, y?: number, options?: {
            mode?: import("@jimp/core").BlendMode;
            opacitySource?: number;
            opacityDest?: number;
        }): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, f: (x: number, y: number, idx: number) => any): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): S;
        scanIterator<S extends import("@jimp/types").JimpClass>(this: S, x?: number, y?: number, w?: number, h?: number): Generator<{
            x: number;
            y: number;
            idx: number;
            image: S;
        }, void, unknown>;
    };
    read(url: string | import("@jimp/core").ImageInput, options?: import("@jimp/core").CreateReadOptions<Record<"image/bmp", import("@jimp/js-bmp").DecodeBmpOptions> | Record<"image/gif", import("@jimp/js-gif").DecodeGifOptions> | Record<"image/jpeg", import("@jimp/js-jpeg").DecodeJpegOptions> | Record<"image/png", import("@jimp/js-png").DecodePngOptions> | Record<"image/tiff", import("@jimp/js-tiff").DecodeTiffOptions> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").DecodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").DecodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").DecodeBmpOptions>> | undefined): Promise<{
        bitmap: import("@jimp/types").Bitmap;
        background: number;
        formats: import("@jimp/types").Format<any>[];
        mime?: string;
        iccProfile?: Buffer;
        inspect(): string;
        toString(): string;
        readonly width: number;
        readonly height: number;
        readonly colorSpace: import("@jimp/types").ColorSpaceName | "custom";
        toColorSpace<S extends import("@jimp/types").JimpClass>(this: S, colorSpace: import("@jimp/types").ColorSpaceName): S;
        getBuffer<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<Buffer<ArrayBufferLike>>;
        getBase64<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<string>;
        write<Path extends string>(path: Path, options?: import("@jimp/core").GetOptionsForPath<Path, Record<"bmp", "image/bmp"> | Record<"gif", "image/gif"> | Record<"jpeg", "image/jpeg"> | Record<"png", "image/png"> | Record<"tiff", "image/tiff"> | Record<"vnd.microsoft.icon", "image/vnd.microsoft.icon"> | Record<"x-icon", "image/x-icon"> | Record<"x-ms-bmp", "image/x-ms-bmp">, Record<"image/bmp", import("@jimp/js-bmp").EncodeOptions> | Record<"image/gif", undefined> | Record<"image/jpeg", import("@jimp/js-jpeg").JPEGOptions> | Record<"image/png", import("@jimp/js-png").PNGOptions> | Record<"image/tiff", undefined> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").EncodeOptions>> | undefined): Promise<void>;
        clone<S extends import("@jimp/types").JimpClass>(this: S): S;
        apply<S extends import("@jimp/types").JimpClass>(this: S, edits: CoreJimpEdit<S>[]): S;
        getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
        getPixelColor(x: number, y: number): number;
        setPixelColor<S extends import("@jimp/types").JimpClass>(this: S, hex: number, x: number, y: number): S;
        hasAlpha(): boolean;
        composite<S extends import("@jimp/types").JimpClass>(this: S, src: import("@jimp/core").CompositeSource, x?: number, y?: number, options?: {
            mode?: import("@jimp/core").BlendMode;
            opacitySource?: number;
            opacityDest?: number;
        }): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, f: (x: number, y: number, idx: number) => any): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): S;
        scanIterator<S extends import("@jimp/types").JimpClass>(this: S, x?: number, y?: number, w?: number, h?: number): Generator<{
            x: number;
            y: number;
            idx: number;
            image: S;
        }, void, unknown>;
    } & import("@jimp/core").JimpInstanceMethods<{
        bitmap: import("@jimp/types").Bitmap;
        background: number;
        formats: import("@jimp/types").Format<any>[];
        mime?: string;
        iccProfile?: Buffer;
        inspect(): string;
        toString(): string;
        readonly width: number;
        readonly height: number;
        readonly colorSpace: import("@jimp/types").ColorSpaceName | "custom";
        toColorSpace<S extends import("@jimp/types").JimpClass>(this: S, colorSpace: import("@jimp/types").ColorSpaceName): S;
        getBuffer<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<Buffer<ArrayBufferLike>>;
        getBase64<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<string>;
        write<Path extends string>(path: Path, options?: import("@jimp/core").GetOptionsForPath<Path, Record<"bmp", "image/bmp"> | Record<"gif", "image/gif"> | Record<"jpeg", "image/jpeg"> | Record<"png", "image/png"> | Record<"tiff", "image/tiff"> | Record<"vnd.microsoft.icon", "image/vnd.microsoft.icon"> | Record<"x-icon", "image/x-icon"> | Record<"x-ms-bmp", "image/x-ms-bmp">, Record<"image/bmp", import("@jimp/js-bmp").EncodeOptions> | Record<"image/gif", undefined> | Record<"image/jpeg", import("@jimp/js-jpeg").JPEGOptions> | Record<"image/png", import("@jimp/js-png").PNGOptions> | Record<"image/tiff", undefined> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").EncodeOptions>> | undefined): Promise<void>;
        clone<S extends import("@jimp/types").JimpClass>(this: S): S;
        apply<S extends import("@jimp/types").JimpClass>(this: S, edits: CoreJimpEdit<S>[]): S;
        getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
        getPixelColor(x: number, y: number): number;
        setPixelColor<S extends import("@jimp/types").JimpClass>(this: S, hex: number, x: number, y: number): S;
        hasAlpha(): boolean;
        composite<S extends import("@jimp/types").JimpClass>(this: S, src: import("@jimp/core").CompositeSource, x?: number, y?: number, options?: {
            mode?: import("@jimp/core").BlendMode;
            opacitySource?: number;
            opacityDest?: number;
        }): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, f: (x: number, y: number, idx: number) => any): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): S;
        scanIterator<S extends import("@jimp/types").JimpClass>(this: S, x?: number, y?: number, w?: number, h?: number): Generator<{
            x: number;
            y: number;
            idx: number;
            image: S;
        }, void, unknown>;
    }, {
        blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
    } & {
        blur<I extends import("@jimp/types").JimpClass>(image: I, r: number): I;
        gaussian<I extends import("@jimp/types").JimpClass>(image: I, r: number): I;
        sharpen<I extends import("@jimp/types").JimpClass>(image: I, options: blur.SharpenOptions): I;
        median<I extends import("@jimp/types").JimpClass>(image: I, radius: number): I;
        bilateral<I extends import("@jimp/types").JimpClass>(image: I, options?: blur.BilateralOptions): I;
    } & {
        roundCorners<I extends import("@jimp/types").JimpClass>(image: I, options: border.RoundCornersOptions): I;
        border<I extends import("@jimp/types").JimpClass>(image: I, options: border.BorderOptions): I;
        boxShadow<I extends import("@jimp/types").JimpClass>(image: I, options?: border.BoxShadowOptions): I;
    } & {
        circle<I extends import("@jimp/types").JimpClass>(image: I, options?: circle.CircleOptions): I;
    } & {
        normalize<I extends import("@jimp/types").JimpClass>(image: I): I;
        invert<I extends import("@jimp/types").JimpClass>(image: I): I;
        brightness<I extends import("@jimp/types").JimpClass>(image: I, val: number): I;
        contrast<I extends import("@jimp/types").JimpClass>(image: I, val: number): I;
        exposure<I extends import("@jimp/types").JimpClass>(image: I, stops: number): I;
        vibrance<I extends import("@jimp/types").JimpClass>(image: I, amount: number): I;
        posterize<I extends import("@jimp/types").JimpClass>(image: I, n: number): I;
        greyscale<I extends import("@jimp/types").JimpClass>(image: I): I;
        opacity<I extends import("@jimp/types").JimpClass>(image: I, f: number): I;
        sepia<I extends import("@jimp/types").JimpClass>(image: I, amount?: number): I;
        gradientMap<I extends import("@jimp/types").JimpClass>(image: I, options: color.GradientMapOptions): I;
        fade<I extends import("@jimp/types").JimpClass>(image: I, f: number): I;
        convolution<I extends import("@jimp/types").JimpClass>(image: I, options: number[][] | {
            kernel: number[][];
            edgeHandling?: import("@jimp/types").Edge | undefined;
            divisor?: number | undefined;
            bias?: number | undefined;
        }): I;
        opaque<I extends import("@jimp/types").JimpClass>(image: I): I;
        pixelate<I extends import("@jimp/types").JimpClass>(image: I, options: number | {
            size: number;
            x?: number | undefined;
            y?: number | undefined;
            w?: number | undefined;
            h?: number | undefined;
        }): I;
        convolute<I extends import("@jimp/types").JimpClass>(image: I, options: number[][] | {
            kernel: number[][];
            x?: number | undefined;
            y?: number | undefined;
            w?: number | undefined;
            h?: number | undefined;
            divisor?: number | undefined;
            bias?: number | undefined;
            preserveAlpha?: boolean | undefined;
        }): I;
        color<I extends import("@jimp/types").JimpClass>(image: I, actions: color.ColorAction[]): I;
        grain<I extends import("@jimp/types").JimpClass>(image: I, options?: color.GrainOptions): I;
    } & {
        resize<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ResizeOptions): I;
        scale<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ScaleOptions): I;
        scaleToFit<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ScaleToFitOptions): I;
    } & {
        contain<I extends import("@jimp/types").JimpClass>(image: I, options: contain.ContainOptions): I;
    } & {
        cover<I extends import("@jimp/types").JimpClass>(image: I, options: cover.CoverOptions): I;
        coverRect<I extends import("@jimp/types").JimpClass>(image: I, options: cover.CoverRectOptions): {
            x: number;
            y: number;
            w: number;
            h: number;
        };
    } & {
        crop<I extends import("@jimp/types").JimpClass>(image: I, options: crop.CropOptions): I;
        autocropRect<I extends import("@jimp/types").JimpClass>(image: I, options?: crop.AutocropOptions): {
            x: number;
            y: number;
            w: number;
            h: number;
        };
        autocrop<I extends import("@jimp/types").JimpClass>(image: I, options?: crop.AutocropOptions): I;
    } & {
        displace<I extends import("@jimp/types").JimpClass>(image: I, options: displace.DisplaceOptions): I;
    } & {
        dither<I extends import("@jimp/types").JimpClass>(image: I, options?: dither.DitherOptions): I;
    } & {
        drawLine<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawLineOptions): I;
        drawRect<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawRectOptions): I;
        drawEllipse<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawEllipseOptions): I;
        drawPolygon<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawPolygonOptions): I;
        drawPath<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawPathOptions): I;
        floodFill<I extends import("@jimp/types").JimpClass>(image: I, options: draw.FloodFillOptions): I;
    } & {
        fisheye<I extends import("@jimp/types").JimpClass>(image: I, options?: fisheye.FisheyeOptions): I;
    } & {
        flip<I extends import("@jimp/types").JimpClass>(image: I, options: flip.FlipOptions): I;
    } & {
        pHash<I extends import("@jimp/types").JimpClass>(image: I, options?: hash.PHashOptions): string;
        hash<I extends import("@jimp/types").JimpClass>(image: I, base?: number, options?: hash.PHashOptions): string;
        distanceFromHash<I extends import("@jimp/types").JimpClass>(image: I, compareHash: string, options?: hash.PHashOptions): number;
        blurhash<I extends import("@jimp/types").JimpClass>(image: I, options?: hash.BlurhashOptions): string;
    } & {
        colorGrade<I extends import("@jimp/types").JimpClass>(image: I, lut: lut.Lut | import("@jimp/types").JimpClass, options?: lut.ColorGradeOptions): I;
    } & {
        mask<I extends import("@jimp/types").JimpClass>(image: I, options: mask.MaskOptions): I;
    } & {
        erode<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
        dilate<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
        open<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
        close<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
    } & {
        print<I extends import("@jimp/types").JimpClass>(image: I, options: print.PrintOptions & print.PrintFontOptions<I>): I;
    } & {
        rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
        affine<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.AffineOptions): I;
        skew<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.SkewOptions): I;
    } & {
        threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
    } & {
        quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
        palette<I extends import("@jimp/types").JimpClass>(image: I, count: number, options?: quantize.PaletteOptions): quantize.PaletteColor[];
        dominantColor<I extends import("@jimp/types").JimpClass>(image: I, options?: quantize.PaletteOptions): number | undefined;
    }>>;
    readFrames(url: string | import("@jimp/core").ImageInput, options?: import("@jimp/core").CreateReadFramesOptions<Record<"image/bmp", import("@jimp/js-bmp").DecodeBmpOptions> | Record<"image/gif", import("@jimp/js-gif").DecodeGifOptions> | Record<"image/jpeg", import("@jimp/js-jpeg").DecodeJpegOptions> | Record<"image/png", import("@jimp/js-png").DecodePngOptions> | Record<"image/tiff", import("@jimp/js-tiff").DecodeTiffOptions> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").DecodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").DecodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").DecodeBmpOptions>> | undefined): Promise<import("@jimp/core").JimpFrames<{
        bitmap: import("@jimp/types").Bitmap;
        background: number;
        formats: import("@jimp/types").Format<any>[];
        mime?: string;
        iccProfile?: Buffer;
        inspect(): string;
        toString(): string;
        readonly width: number;
        readonly height: number;
        readonly colorSpace: import("@jimp/types").ColorSpaceName | "custom";
        toColorSpace<S extends import("@jimp/types").JimpClass>(this: S, colorSpace: import("@jimp/types").ColorSpaceName): S;
        getBuffer<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<Buffer<ArrayBufferLike>>;
        getBase64<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<string>;
        write<Path extends string>(path: Path, options?: import("@jimp/core").GetOptionsForPath<Path, Record<"bmp", "image/bmp"> | Record<"gif", "image/gif"> | Record<"jpeg", "image/jpeg"> | Record<"png", "image/png"> | Record<"tiff", "image/tiff"> | Record<"vnd.microsoft.icon", "image/vnd.microsoft.icon"> | Record<"x-icon", "image/x-icon"> | Record<"x-ms-bmp", "image/x-ms-bmp">, Record<"image/bmp", import("@jimp/js-bmp").EncodeOptions> | Record<"image/gif", undefined> | Record<"image/jpeg", import("@jimp/js-jpeg").JPEGOptions> | Record<"image/png", import("@jimp/js-png").PNGOptions> | Record<"image/tiff", undefined> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").EncodeOptions>> | undefined): Promise<void>;
        clone<S extends import("@jimp/types").JimpClass>(this: S): S;
        apply<S extends import("@jimp/types").JimpClass>(this: S, edits: CoreJimpEdit<S>[]): S;
        getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
        getPixelColor(x: number, y: number): number;
        setPixelColor<S extends import("@jimp/types").JimpClass>(this: S, hex: number, x: number, y: number): S;
        hasAlpha(): boolean;
        composite<S extends import("@jimp/types").JimpClass>(this: S, src: import("@jimp/core").CompositeSource, x?: number, y?: number, options?: {
            mode?: import("@jimp/core").BlendMode;
            opacitySource?: number;
            opacityDest?: number;
        }): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, f: (x: number, y: number, idx: number) => any): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): S;
        scanIterator<S extends import("@jimp/types").JimpClass>(this: S, x?: number, y?: number, w?: number, h?: number): Generator<{
            x: number;
            y: number;
            idx: number;
            image: S;
        }, void, unknown>;
    } & import("@jimp/core").JimpInstanceMethods<{
        bitmap: import("@jimp/types").Bitmap;
        background: number;
        formats: import("@jimp/types").Format<any>[];
        mime?: string;
        iccProfile?: Buffer;
        inspect(): string;
        toString(): string;
        readonly width: number;
        readonly height: number;
        readonly colorSpace: import("@jimp/types").ColorSpaceName | "custom";
        toColorSpace<S extends import("@jimp/types").JimpClass>(this: S, colorSpace: import("@jimp/types").ColorSpaceName): S;
        getBuffer<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<Buffer<ArrayBufferLike>>;
        getBase64<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<string>;
        write<Path extends string>(path: Path, options?: import("@jimp/core").GetOptionsForPath<Path, Record<"bmp", "image/bmp"> | Record<"gif", "image/gif"> | Record<"jpeg", "image/jpeg"> | Record<"png", "image/png"> | Record<"tiff", "image/tiff"> | Record<"vnd.microsoft.icon", "image/vnd.microsoft.icon"> | Record<"x-icon", "image/x-icon"> | Record<"x-ms-bmp", "image/x-ms-bmp">, Record<"image/bmp", import("@jimp/js-bmp").EncodeOptions> | Record<"image/gif", undefined> | Record<"image/jpeg", import("@jimp/js-jpeg").JPEGOptions> | Record<"image/png", import("@jimp/js-png").PNGOptions> | Record<"image/tiff", undefined> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").EncodeOptions>> | undefined): Promise<void>;
        clone<S extends import("@jimp/types").JimpClass>(this: S): S;
        apply<S extends import("@jimp/types").JimpClass>(this: S, edits: CoreJimpEdit<S>[]): S;
        getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
        getPixelColor(x: number, y: number): number;
        setPixelColor<S extends import("@jimp/types").JimpClass>(this: S, hex: number, x: number, y: number): S;
        hasAlpha(): boolean;
        composite<S extends import("@jimp/types").JimpClass>(this: S, src: import("@jimp/core").CompositeSource, x?: number, y?: number, options?: {
            mode?: import("@jimp/core").BlendMode;
            opacitySource?: number;
            opacityDest?: number;
        }): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, f: (x: number, y: number, idx: number) => any): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): S;
        scanIterator<S extends import("@jimp/types").JimpClass>(this: S, x?: number, y?: number, w?: number, h?: number): Generator<{
            x: number;
            y: number;
            idx: number;
            image: S;
        }, void, unknown>;
    }, {
        blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
    } & {
        blur<I extends import("@jimp/types").JimpClass>(image: I, r: number): I;
        gaussian<I extends import("@jimp/types").JimpClass>(image: I, r: number): I;
        sharpen<I extends import("@jimp/types").JimpClass>(image: I, options: blur.SharpenOptions): I;
        median<I extends import("@jimp/types").JimpClass>(image: I, radius: number): I;
        bilateral<I extends import("@jimp/types").JimpClass>(image: I, options?: blur.BilateralOptions): I;
    } & {
        roundCorners<I extends import("@jimp/types").JimpClass>(image: I, options: border.RoundCornersOptions): I;
        border<I extends import("@jimp/types").JimpClass>(image: I, options: border.BorderOptions): I;
        boxShadow<I extends import("@jimp/types").JimpClass>(image: I, options?: border.BoxShadowOptions): I;
    } & {
        circle<I extends import("@jimp/types").JimpClass>(image: I, options?: circle.CircleOptions): I;
    } & {
        normalize<I extends import("@jimp/types").JimpClass>(image: I): I;
        invert<I extends import("@jimp/types").JimpClass>(image: I): I;
        brightness<I extends import("@jimp/types").JimpClass>(image: I, val: number): I;
        contrast<I extends import("@jimp/types").JimpClass>(image: I, val: number): I;
        exposure<I extends import("@jimp/types").JimpClass>(image: I, stops: number): I;
        vibrance<I extends import("@jimp/types").JimpClass>(image: I, amount: number): I;
        posterize<I extends import("@jimp/types").JimpClass>(image: I, n: number): I;
        greyscale<I extends import("@jimp/types").JimpClass>(image: I): I;
        opacity<I extends import("@jimp/types").JimpClass>(image: I, f: number): I;
        sepia<I extends import("@jimp/types").JimpClass>(image: I, amount?: number): I;
        gradientMap<I extends import("@jimp/types").JimpClass>(image: I, options: color.GradientMapOptions): I;
        fade<I extends import("@jimp/types").JimpClass>(image: I, f: number): I;
        convolution<I extends import("@jimp/types").JimpClass>(image: I, options: number[][] | {
            kernel: number[][];
            edgeHandling?: import("@jimp/types").Edge | undefined;
            divisor?: number | undefined;
            bias?: number | undefined;
        }): I;
        opaque<I extends import("@jimp/types").JimpClass>(image: I): I;
        pixelate<I extends import("@jimp/types").JimpClass>(image: I, options: number | {
            size: number;
            x?: number | undefined;
            y?: number | undefined;
            w?: number | undefined;
            h?: number | undefined;
        }): I;
        convolute<I extends import("@jimp/types").JimpClass>(image: I, options: number[][] | {
            kernel: number[][];
            x?: number | undefined;
            y?: number | undefined;
            w?: number | undefined;
            h?: number | undefined;
            divisor?: number | undefined;
            bias?: number | undefined;
            preserveAlpha?: boolean | undefined;
        }): I;
        color<I extends import("@jimp/types").JimpClass>(image: I, actions: color.ColorAction[]): I;
        grain<I extends import("@jimp/types").JimpClass>(image: I, options?: color.GrainOptions): I;
    } & {
        resize<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ResizeOptions): I;
        scale<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ScaleOptions): I;
        scaleToFit<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ScaleToFitOptions): I;
    } & {
        contain<I extends import("@jimp/types").JimpClass>(image: I, options: contain.ContainOptions): I;
    } & {
        cover<I extends import("@jimp/types").JimpClass>(image: I, options: cover.CoverOptions): I;
        coverRect<I extends import("@jimp/types").JimpClass>(image: I, options: cover.CoverRectOptions): {
            x: number;
            y: number;
            w: number;
            h: number;
        };
    } & {
        crop<I extends import("@jimp/types").JimpClass>(image: I, options: crop.CropOptions): I;
        autocropRect<I extends import("@jimp/types").JimpClass>(image: I, options?: crop.AutocropOptions): {
            x: number;
            y: number;
            w: number;
            h: number;
        };
        autocrop<I extends import("@jimp/types").JimpClass>(image: I, options?: crop.AutocropOptions): I;
    } & {
        displace<I extends import("@jimp/types").JimpClass>(image: I, options: displace.DisplaceOptions): I;
    } & {
        dither<I extends import("@jimp/types").JimpClass>(image: I, options?: dither.DitherOptions): I;
    } & {
        drawLine<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawLineOptions): I;
        drawRect<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawRectOptions): I;
        drawEllipse<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawEllipseOptions): I;
        drawPolygon<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawPolygonOptions): I;
        drawPath<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawPathOptions): I;
        floodFill<I extends import("@jimp/types").JimpClass>(image: I, options: draw.FloodFillOptions): I;
    } & {
        fisheye<I extends import("@jimp/types").JimpClass>(image: I, options?: fisheye.FisheyeOptions): I;
    } & {
        flip<I extends import("@jimp/types").JimpClass>(image: I, options: flip.FlipOptions): I;
    } & {
        pHash<I extends import("@jimp/types").JimpClass>(image: I, options?: hash.PHashOptions): string;
        hash<I extends import("@jimp/types").JimpClass>(image: I, base?: number, options?: hash.PHashOptions): string;
        distanceFromHash<I extends import("@jimp/types").JimpClass>(image: I, compareHash: string, options?: hash.PHashOptions): number;
        blurhash<I extends import("@jimp/types").JimpClass>(image: I, options?: hash.BlurhashOptions): string;
    } & {
        colorGrade<I extends import("@jimp/types").JimpClass>(image: I, lut: lut.Lut | import("@jimp/types").JimpClass, options?: lut.ColorGradeOptions): I;
    } & {
        mask<I extends import("@jimp/types").JimpClass>(image: I, options: mask.MaskOptions): I;
    } & {
        erode<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
        dilate<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
        open<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
        close<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
    } & {
        print<I extends import("@jimp/types").JimpClass>(image: I, options: print.PrintOptions & print.PrintFontOptions<I>): I;
    } & {
        rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
        affine<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.AffineOptions): I;
        skew<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.SkewOptions): I;
    } & {
        threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
    } & {
        quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
        palette<I extends import("@jimp/types").JimpClass>(image: I, count: number, options?: quantize.PaletteOptions): quantize.PaletteColor[];
        dominantColor<I extends import("@jimp/types").JimpClass>(image: I, options?: quantize.PaletteOptions): number | undefined;
    }>>>;
    fromBufferFrames(buffer: import("@jimp/core").ImageInput, options?: import("@jimp/core").CreateReadFramesOptions<Record<"image/bmp", import("@jimp/js-bmp").DecodeBmpOptions> | Record<"image/gif", import("@jimp/js-gif").DecodeGifOptions> | Record<"image/jpeg", import("@jimp/js-jpeg").DecodeJpegOptions> | Record<"image/png", import("@jimp/js-png").DecodePngOptions> | Record<"image/tiff", import("@jimp/js-tiff").DecodeTiffOptions> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").DecodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").DecodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").DecodeBmpOptions>> | undefined): Promise<import("@jimp/core").JimpFrames<{
        bitmap: import("@jimp/types").Bitmap;
        background: number;
        formats: import("@jimp/types").Format<any>[];
        mime?: string;
        iccProfile?: Buffer;
        inspect(): string;
        toString(): string;
        readonly width: number;
        readonly height: number;
        readonly colorSpace: import("@jimp/types").ColorSpaceName | "custom";
        toColorSpace<S extends import("@jimp/types").JimpClass>(this: S, colorSpace: import("@jimp/types").ColorSpaceName): S;
        getBuffer<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<Buffer<ArrayBufferLike>>;
        getBase64<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<string>;
        write<Path extends string>(path: Path, options?: import("@jimp/core").GetOptionsForPath<Path, Record<"bmp", "image/bmp"> | Record<"gif", "image/gif"> | Record<"jpeg", "image/jpeg"> | Record<"png", "image/png"> | Record<"tiff", "image/tiff"> | Record<"vnd.microsoft.icon", "image/vnd.microsoft.icon"> | Record<"x-icon", "image/x-icon"> | Record<"x-ms-bmp", "image/x-ms-bmp">, Record<"image/bmp", import("@jimp/js-bmp").EncodeOptions> | Record<"image/gif", undefined> | Record<"image/jpeg", import("@jimp/js-jpeg").JPEGOptions> | Record<"image/png", import("@jimp/js-png").PNGOptions> | Record<"image/tiff", undefined> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").EncodeOptions>> | undefined): Promise<void>;
        clone<S extends import("@jimp/types").JimpClass>(this: S): S;
        apply<S extends import("@jimp/types").JimpClass>(this: S, edits: CoreJimpEdit<S>[]): S;
        getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
        getPixelColor(x: number, y: number): number;
        setPixelColor<S extends import("@jimp/types").JimpClass>(this: S, hex: number, x: number, y: number): S;
        hasAlpha(): boolean;
        composite<S extends import("@jimp/types").JimpClass>(this: S, src: import("@jimp/core").CompositeSource, x?: number, y?: number, options?: {
            mode?: import("@jimp/core").BlendMode;
            opacitySource?: number;
            opacityDest?: number;
        }): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, f: (x: number, y: number, idx: number) => any): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): S;
        scanIterator<S extends import("@jimp/types").JimpClass>(this: S, x?: number, y?: number, w?: number, h?: number): Generator<{
            x: number;
            y: number;
            idx: number;
            image: S;
        }, void, unknown>;
    } & import("@jimp/core").JimpInstanceMethods<{
        bitmap: import("@jimp/types").Bitmap;
        background: number;
        formats: import("@jimp/types").Format<any>[];
        mime?: string;
        iccProfile?: Buffer;
        inspect(): string;
        toString(): string;
        readonly width: number;
        readonly height: number;
        readonly colorSpace: import("@jimp/types").ColorSpaceName | "custom";
        toColorSpace<S extends import("@jimp/types").JimpClass>(this: S, colorSpace: import("@jimp/types").ColorSpaceName): S;
        getBuffer<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<Buffer<ArrayBufferLike>>;
        getBase64<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<string>;
        write<Path extends string>(path: Path, options?: import("@jimp/core").GetOptionsForPath<Path, Record<"bmp", "image/bmp"> | Record<"gif", "image/gif"> | Record<"jpeg", "image/jpeg"> | Record<"png", "image/png"> | Record<"tiff", "image/tiff"> | Record<"vnd.microsoft.icon", "image/vnd.microsoft.icon"> | Record<"x-icon", "image/x-icon"> | Record<"x-ms-bmp", "image/x-ms-bmp">, Record<"image/bmp", import("@jimp/js-bmp").EncodeOptions> | Record<"image/gif", undefined> | Record<"image/jpeg", import("@jimp/js-jpeg").JPEGOptions> | Record<"image/png", import("@jimp/js-png").PNGOptions> | Record<"image/tiff", undefined> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").EncodeOptions>> | undefined): Promise<void>;
        clone<S extends import("@jimp/types").JimpClass>(this: S): S;
        apply<S extends import("@jimp/types").JimpClass>(this: S, edits: CoreJimpEdit<S>[]): S;
        getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
        getPixelColor(x: number, y: number): number;
        setPixelColor<S extends import("@jimp/types").JimpClass>(this: S, hex: number, x: number, y: number): S;
        hasAlpha(): boolean;
        composite<S extends import("@jimp/types").JimpClass>(this: S, src: import("@jimp/core").CompositeSource, x?: number, y?: number, options?: {
            mode?: import("@jimp/core").BlendMode;
            opacitySource?: number;
            opacityDest?: number;
        }): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, f: (x: number, y: number, idx: number) => any): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): S;
        scanIterator<S extends import("@jimp/types").JimpClass>(this: S, x?: number, y?: number, w?: number, h?: number): Generator<{
            x: number;
            y: number;
            idx: number;
            image: S;
        }, void, unknown>;
    }, {
        blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
    } & {
        blur<I extends import("@jimp/types").JimpClass>(image: I, r: number): I;
        gaussian<I extends import("@jimp/types").JimpClass>(image: I, r: number): I;
        sharpen<I extends import("@jimp/types").JimpClass>(image: I, options: blur.SharpenOptions): I;
        median<I extends import("@jimp/types").JimpClass>(image: I, radius: number): I;
        bilateral<I extends import("@jimp/types").JimpClass>(image: I, options?: blur.BilateralOptions): I;
    } & {
        roundCorners<I extends import("@jimp/types").JimpClass>(image: I, options: border.RoundCornersOptions): I;
        border<I extends import("@jimp/types").JimpClass>(image: I, options: border.BorderOptions): I;
        boxShadow<I extends import("@jimp/types").JimpClass>(image: I, options?: border.BoxShadowOptions): I;
    } & {
        circle<I extends import("@jimp/types").JimpClass>(image: I, options?: circle.CircleOptions): I;
    } & {
        normalize<I extends import("@jimp/types").JimpClass>(image: I): I;
        invert<I extends import("@jimp/types").JimpClass>(image: I): I;
        brightness<I extends import("@jimp/types").JimpClass>(image: I, val: number): I;
        contrast<I extends import("@jimp/types").JimpClass>(image: I, val: number): I;
        exposure<I extends import("@jimp/types").JimpClass>(image: I, stops: number): I;
        vibrance<I extends import("@jimp/types").JimpClass>(image: I, amount: number): I;
        posterize<I extends import("@jimp/types").JimpClass>(image: I, n: number): I;
        greyscale<I extends import("@jimp/types").JimpClass>(image: I): I;
        opacity<I extends import("@jimp/types").JimpClass>(image: I, f: number): I;
        sepia<I extends import("@jimp/types").JimpClass>(image: I, amount?: number): I;
        gradientMap<I extends import("@jimp/types").JimpClass>(image: I, options: color.GradientMapOptions): I;
        fade<I extends import("@jimp/types").JimpClass>(image: I, f: number): I;
        convolution<I extends import("@jimp/types").JimpClass>(image: I, options: number[][] | {
            kernel: number[][];
            edgeHandling?: import("@jimp/types").Edge | undefined;
            divisor?: number | undefined;
            bias?: number | undefined;
        }): I;
        opaque<I extends import("@jimp/types").JimpClass>(image: I): I;
        pixelate<I extends import("@jimp/types").JimpClass>(image: I, options: number | {
            size: number;
            x?: number | undefined;
            y?: number | undefined;
            w?: number | undefined;
            h?: number | undefined;
        }): I;
        convolute<I extends import("@jimp/types").JimpClass>(image: I, options: number[][] | {
            kernel: number[][];
            x?: number | undefined;
            y?: number | undefined;
            w?: number | undefined;
            h?: number | undefined;
            divisor?: number | undefined;
            bias?: number | undefined;
            preserveAlpha?: boolean | undefined;
        }): I;
        color<I extends import("@jimp/types").JimpClass>(image: I, actions: color.ColorAction[]): I;
        grain<I extends import("@jimp/types").JimpClass>(image: I, options?: color.GrainOptions): I;
    } & {
        resize<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ResizeOptions): I;
        scale<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ScaleOptions): I;
        scaleToFit<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ScaleToFitOptions): I;
    } & {
        contain<I extends import("@jimp/types").JimpClass>(image: I, options: contain.ContainOptions): I;
    } & {
        cover<I extends import("@jimp/types").JimpClass>(image: I, options: cover.CoverOptions): I;
        coverRect<I extends import("@jimp/types").JimpClass>(image: I, options: cover.CoverRectOptions): {
            x: number;
            y: number;
            w: number;
            h: number;
        };
    } & {
        crop<I extends import("@jimp/types").JimpClass>(image: I, options: crop.CropOptions): I;
        autocropRect<I extends import("@jimp/types").JimpClass>(image: I, options?: crop.AutocropOptions): {
            x: number;
            y: number;
            w: number;
            h: number;
        };
        autocrop<I extends import("@jimp/types").JimpClass>(image: I, options?: crop.AutocropOptions): I;
    } & {
        displace<I extends import("@jimp/types").JimpClass>(image: I, options: displace.DisplaceOptions): I;
    } & {
        dither<I extends import("@jimp/types").JimpClass>(image: I, options?: dither.DitherOptions): I;
    } & {
        drawLine<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawLineOptions): I;
        drawRect<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawRectOptions): I;
        drawEllipse<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawEllipseOptions): I;
        drawPolygon<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawPolygonOptions): I;
        drawPath<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawPathOptions): I;
        floodFill<I extends import("@jimp/types").JimpClass>(image: I, options: draw.FloodFillOptions): I;
    } & {
        fisheye<I extends import("@jimp/types").JimpClass>(image: I, options?: fisheye.FisheyeOptions): I;
    } & {
        flip<I extends import("@jimp/types").JimpClass>(image: I, options: flip.FlipOptions): I;
    } & {
        pHash<I extends import("@jimp/types").JimpClass>(image: I, options?: hash.PHashOptions): string;
        hash<I extends import("@jimp/types").JimpClass>(image: I, base?: number, options?: hash.PHashOptions): string;
        distanceFromHash<I extends import("@jimp/types").JimpClass>(image: I, compareHash: string, options?: hash.PHashOptions): number;
        blurhash<I extends import("@jimp/types").JimpClass>(image: I, options?: hash.BlurhashOptions): string;
    } & {
        colorGrade<I extends import("@jimp/types").JimpClass>(image: I, lut: lut.Lut | import("@jimp/types").JimpClass, options?: lut.ColorGradeOptions): I;
    } & {
        mask<I extends import("@jimp/types").JimpClass>(image: I, options: mask.MaskOptions): I;
    } & {
        erode<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
        dilate<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
        open<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
        close<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
    } & {
        print<I extends import("@jimp/types").JimpClass>(image: I, options: print.PrintOptions & print.PrintFontOptions<I>): I;
    } & {
        rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
        affine<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.AffineOptions): I;
        skew<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.SkewOptions): I;
    } & {
        threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
    } & {
        quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
        palette<I extends import("@jimp/types").JimpClass>(image: I, count: number, options?: quantize.PaletteOptions): quantize.PaletteColor[];
        dominantColor<I extends import("@jimp/types").JimpClass>(image: I, options?: quantize.PaletteOptions): number | undefined;
    }>>>;
    fromBitmap(bitmap: import("@jimp/core").RawImageData): {
        bitmap: import("@jimp/types").Bitmap;
        background: number;
        formats: import("@jimp/types").Format<any>[];
        mime?: string;
        iccProfile?: Buffer;
        inspect(): string;
        toString(): string;
        readonly width: number;
        readonly height: number;
        readonly colorSpace: import("@jimp/types").ColorSpaceName | "custom";
        toColorSpace<S extends import("@jimp/types").JimpClass>(this: S, colorSpace: import("@jimp/types").ColorSpaceName): S;
        getBuffer<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<Buffer<ArrayBufferLike>>;
        getBase64<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<string>;
        write<Path extends string>(path: Path, options?: import("@jimp/core").GetOptionsForPath<Path, Record<"bmp", "image/bmp"> | Record<"gif", "image/gif"> | Record<"jpeg", "image/jpeg"> | Record<"png", "image/png"> | Record<"tiff", "image/tiff"> | Record<"vnd.microsoft.icon", "image/vnd.microsoft.icon"> | Record<"x-icon", "image/x-icon"> | Record<"x-ms-bmp", "image/x-ms-bmp">, Record<"image/bmp", import("@jimp/js-bmp").EncodeOptions> | Record<"image/gif", undefined> | Record<"image/jpeg", import("@jimp/js-jpeg").JPEGOptions> | Record<"image/png", import("@jimp/js-png").PNGOptions> | Record<"image/tiff", undefined> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").EncodeOptions>> | undefined): Promise<void>;
        clone<S extends import("@jimp/types").JimpClass>(this: S): S;
        apply<S extends import("@jimp/types").JimpClass>(this: S, edits: CoreJimpEdit<S>[]): S;
        getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
        getPixelColor(x: number, y: number): number;
        setPixelColor<S extends import("@jimp/types").JimpClass>(this: S, hex: number, x: number, y: number): S;
        hasAlpha(): boolean;
        composite<S extends import("@jimp/types").JimpClass>(this: S, src: import("@jimp/core").CompositeSource, x?: number, y?: number, options?: {
            mode?: import("@jimp/core").BlendMode;
            opacitySource?: number;
            opacityDest?: number;
        }): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, f: (x: number, y: number, idx: number) => any): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): S;
        scanIterator<S extends import("@jimp/types").JimpClass>(this: S, x?: number, y?: number, w?: number, h?: number): Generator<{
            x: number;
            y: number;
            idx: number;
            image: S;
        }, void, unknown>;
    } & import("@jimp/core").JimpInstanceMethods<{
        bitmap: import("@jimp/types").Bitmap;
        background: number;
        formats: import("@jimp/types").Format<any>[];
        mime?: string;
        iccProfile?: Buffer;
        inspect(): string;
        toString(): string;
        readonly width: number;
        readonly height: number;
        readonly colorSpace: import("@jimp/types").ColorSpaceName | "custom";
        toColorSpace<S extends import("@jimp/types").JimpClass>(this: S, colorSpace: import("@jimp/types").ColorSpaceName): S;
        getBuffer<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<Buffer<ArrayBufferLike>>;
        getBase64<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<string>;
        write<Path extends string>(path: Path, options?: import("@jimp/core").GetOptionsForPath<Path, Record<"bmp", "image/bmp"> | Record<"gif", "image/gif"> | Record<"jpeg", "image/jpeg"> | Record<"png", "image/png"> | Record<"tiff", "image/tiff"> | Record<"vnd.microsoft.icon", "image/vnd.microsoft.icon"> | Record<"x-icon", "image/x-icon"> | Record<"x-ms-bmp", "image/x-ms-bmp">, Record<"image/bmp", import("@jimp/js-bmp").EncodeOptions> | Record<"image/gif", undefined> | Record<"image/jpeg", import("@jimp/js-jpeg").JPEGOptions> | Record<"image/png", import("@jimp/js-png").PNGOptions> | Record<"image/tiff", undefined> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").EncodeOptions>> | undefined): Promise<void>;
        clone<S extends import("@jimp/types").JimpClass>(this: S): S;
        apply<S extends import("@jimp/types").JimpClass>(this: S, edits: CoreJimpEdit<S>[]): S;
        getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
        getPixelColor(x: number, y: number): number;
        setPixelColor<S extends import("@jimp/types").JimpClass>(this: S, hex: number, x: number, y: number): S;
        hasAlpha(): boolean;
        composite<S extends import("@jimp/types").JimpClass>(this: S, src: import("@jimp/core").CompositeSource, x?: number, y?: number, options?: {
            mode?: import("@jimp/core").BlendMode;
            opacitySource?: number;
            opacityDest?: number;
        }): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, f: (x: number, y: number, idx: number) => any): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): S;
        scanIterator<S extends import("@jimp/types").JimpClass>(this: S, x?: number, y?: number, w?: number, h?: number): Generator<{
            x: number;
            y: number;
            idx: number;
            image: S;
        }, void, unknown>;
    }, {
        blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
    } & {
        blur<I extends import("@jimp/types").JimpClass>(image: I, r: number): I;
        gaussian<I extends import("@jimp/types").JimpClass>(image: I, r: number): I;
        sharpen<I extends import("@jimp/types").JimpClass>(image: I, options: blur.SharpenOptions): I;
        median<I extends import("@jimp/types").JimpClass>(image: I, radius: number): I;
        bilateral<I extends import("@jimp/types").JimpClass>(image: I, options?: blur.BilateralOptions): I;
    } & {
        roundCorners<I extends import("@jimp/types").JimpClass>(image: I, options: border.RoundCornersOptions): I;
        border<I extends import("@jimp/types").JimpClass>(image: I, options: border.BorderOptions): I;
        boxShadow<I extends import("@jimp/types").JimpClass>(image: I, options?: border.BoxShadowOptions): I;
    } & {
        circle<I extends import("@jimp/types").JimpClass>(image: I, options?: circle.CircleOptions): I;
    } & {
        normalize<I extends import("@jimp/types").JimpClass>(image: I): I;
        invert<I extends import("@jimp/types").JimpClass>(image: I): I;
        brightness<I extends import("@jimp/types").JimpClass>(image: I, val: number): I;
        contrast<I extends import("@jimp/types").JimpClass>(image: I, val: number): I;
        exposure<I extends import("@jimp/types").JimpClass>(image: I, stops: number): I;
        vibrance<I extends import("@jimp/types").JimpClass>(image: I, amount: number): I;
        posterize<I extends import("@jimp/types").JimpClass>(image: I, n: number): I;
        greyscale<I extends import("@jimp/types").JimpClass>(image: I): I;
        opacity<I extends import("@jimp/types").JimpClass>(image: I, f: number): I;
        sepia<I extends import("@jimp/types").JimpClass>(image: I, amount?: number): I;
        gradientMap<I extends import("@jimp/types").JimpClass>(image: I, options: color.GradientMapOptions): I;
        fade<I extends import("@jimp/types").JimpClass>(image: I, f: number): I;
        convolution<I extends import("@jimp/types").JimpClass>(image: I, options: number[][] | {
            kernel: number[][];
            edgeHandling?: import("@jimp/types").Edge | undefined;
            divisor?: number | undefined;
            bias?: number | undefined;
        }): I;
        opaque<I extends import("@jimp/types").JimpClass>(image: I): I;
        pixelate<I extends import("@jimp/types").JimpClass>(image: I, options: number | {
            size: number;
            x?: number | undefined;
            y?: number | undefined;
            w?: number | undefined;
            h?: number | undefined;
        }): I;
        convolute<I extends import("@jimp/types").JimpClass>(image: I, options: number[][] | {
            kernel: number[][];
            x?: number | undefined;
            y?: number | undefined;
            w?: number | undefined;
            h?: number | undefined;
            divisor?: number | undefined;
            bias?: number | undefined;
            preserveAlpha?: boolean | undefined;
        }): I;
        color<I extends import("@jimp/types").JimpClass>(image: I, actions: color.ColorAction[]): I;
        grain<I extends import("@jimp/types").JimpClass>(image: I, options?: color.GrainOptions): I;
    } & {
        resize<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ResizeOptions): I;
        scale<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ScaleOptions): I;
        scaleToFit<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ScaleToFitOptions): I;
    } & {
        contain<I extends import("@jimp/types").JimpClass>(image: I, options: contain.ContainOptions): I;
    } & {
        cover<I extends import("@jimp/types").JimpClass>(image: I, options: cover.CoverOptions): I;
        coverRect<I extends import("@jimp/types").JimpClass>(image: I, options: cover.CoverRectOptions): {
            x: number;
            y: number;
            w: number;
            h: number;
        };
    } & {
        crop<I extends import("@jimp/types").JimpClass>(image: I, options: crop.CropOptions): I;
        autocropRect<I extends import("@jimp/types").JimpClass>(image: I, options?: crop.AutocropOptions): {
            x: number;
            y: number;
            w: number;
            h: number;
        };
        autocrop<I extends import("@jimp/types").JimpClass>(image: I, options?: crop.AutocropOptions): I;
    } & {
        displace<I extends import("@jimp/types").JimpClass>(image: I, options: displace.DisplaceOptions): I;
    } & {
        dither<I extends import("@jimp/types").JimpClass>(image: I, options?: dither.DitherOptions): I;
    } & {
        drawLine<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawLineOptions): I;
        drawRect<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawRectOptions): I;
        drawEllipse<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawEllipseOptions): I;
        drawPolygon<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawPolygonOptions): I;
        drawPath<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawPathOptions): I;
        floodFill<I extends import("@jimp/types").JimpClass>(image: I, options: draw.FloodFillOptions): I;
    } & {
        fisheye<I extends import("@jimp/types").JimpClass>(image: I, options?: fisheye.FisheyeOptions): I;
    } & {
        flip<I extends import("@jimp/types").JimpClass>(image: I, options: flip.FlipOptions): I;
    } & {
        pHash<I extends import("@jimp/types").JimpClass>(image: I, options?: hash.PHashOptions): string;
        hash<I extends import("@jimp/types").JimpClass>(image: I, base?: number, options?: hash.PHashOptions): string;
        distanceFromHash<I extends import("@jimp/types").JimpClass>(image: I, compareHash: string, options?: hash.PHashOptions): number;
        blurhash<I extends import("@jimp/types").JimpClass>(image: I, options?: hash.BlurhashOptions): string;
    } & {
        colorGrade<I extends import("@jimp/types").JimpClass>(image: I, lut: lut.Lut | import("@jimp/types").JimpClass, options?: lut.ColorGradeOptions): I;
    } & {
        mask<I extends import("@jimp/types").JimpClass>(image: I, options: mask.MaskOptions): I;
    } & {
        erode<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
        dilate<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
        open<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
        close<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
    } & {
        print<I extends import("@jimp/types").JimpClass>(image: I, options: print.PrintOptions & print.PrintFontOptions<I>): I;
    } & {
        rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
        affine<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.AffineOptions): I;
        skew<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.SkewOptions): I;
    } & {
        threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
    } & {
        quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
        palette<I extends import("@jimp/types").JimpClass>(image: I, count: number, options?: quantize.PaletteOptions): quantize.PaletteColor[];
        dominantColor<I extends import("@jimp/types").JimpClass>(image: I, options?: quantize.PaletteOptions): number | undefined;
    }>;
    fromBuffer(buffer: import("@jimp/core").ImageInput, options?: import("@jimp/core").CreateReadOptions<Record<"image/bmp", import("@jimp/js-bmp").DecodeBmpOptions> | Record<"image/gif", import("@jimp/js-gif").DecodeGifOptions> | Record<"image/jpeg", import("@jimp/js-jpeg").DecodeJpegOptions> | Record<"image/png", import("@jimp/js-png").DecodePngOptions> | Record<"image/tiff", import("@jimp/js-tiff").DecodeTiffOptions> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").DecodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").DecodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").DecodeBmpOptions>> | undefined): Promise<{
        bitmap: import("@jimp/types").Bitmap;
        background: number;
        formats: import("@jimp/types").Format<any>[];
        mime?: string;
        iccProfile?: Buffer;
        inspect(): string;
        toString(): string;
        readonly width: number;
        readonly height: number;
        readonly colorSpace: import("@jimp/types").ColorSpaceName | "custom";
        toColorSpace<S extends import("@jimp/types").JimpClass>(this: S, colorSpace: import("@jimp/types").ColorSpaceName): S;
        getBuffer<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<Buffer<ArrayBufferLike>>;
        getBase64<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<string>;
        write<Path extends string>(path: Path, options?: import("@jimp/core").GetOptionsForPath<Path, Record<"bmp", "image/bmp"> | Record<"gif", "image/gif"> | Record<"jpeg", "image/jpeg"> | Record<"png", "image/png"> | Record<"tiff", "image/tiff"> | Record<"vnd.microsoft.icon", "image/vnd.microsoft.icon"> | Record<"x-icon", "image/x-icon"> | Record<"x-ms-bmp", "image/x-ms-bmp">, Record<"image/bmp", import("@jimp/js-bmp").EncodeOptions> | Record<"image/gif", undefined> | Record<"image/jpeg", import("@jimp/js-jpeg").JPEGOptions> | Record<"image/png", import("@jimp/js-png").PNGOptions> | Record<"image/tiff", undefined> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").EncodeOptions>> | undefined): Promise<void>;
        clone<S extends import("@jimp/types").JimpClass>(this: S): S;
        apply<S extends import("@jimp/types").JimpClass>(this: S, edits: CoreJimpEdit<S>[]): S;
        getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
        getPixelColor(x: number, y: number): number;
        setPixelColor<S extends import("@jimp/types").JimpClass>(this: S, hex: number, x: number, y: number): S;
        hasAlpha(): boolean;
        composite<S extends import("@jimp/types").JimpClass>(this: S, src: import("@jimp/core").CompositeSource, x?: number, y?: number, options?: {
            mode?: import("@jimp/core").BlendMode;
            opacitySource?: number;
            opacityDest?: number;
        }): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, f: (x: number, y: number, idx: number) => any): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): S;
        scanIterator<S extends import("@jimp/types").JimpClass>(this: S, x?: number, y?: number, w?: number, h?: number): Generator<{
            x: number;
            y: number;
            idx: number;
            image: S;
        }, void, unknown>;
    } & import("@jimp/core").JimpInstanceMethods<{
        bitmap: import("@jimp/types").Bitmap;
        background: number;
        formats: import("@jimp/types").Format<any>[];
        mime?: string;
        iccProfile?: Buffer;
        inspect(): string;
        toString(): string;
        readonly width: number;
        readonly height: number;
        readonly colorSpace: import("@jimp/types").ColorSpaceName | "custom";
        toColorSpace<S extends import("@jimp/types").JimpClass>(this: S, colorSpace: import("@jimp/types").ColorSpaceName): S;
        getBuffer<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<Buffer<ArrayBufferLike>>;
        getBase64<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<string>;
        write<Path extends string>(path: Path, options?: import("@jimp/core").GetOptionsForPath<Path, Record<"bmp", "image/bmp"> | Record<"gif", "image/gif"> | Record<"jpeg", "image/jpeg"> | Record<"png", "image/png"> | Record<"tiff", "image/tiff"> | Record<"vnd.microsoft.icon", "image/vnd.microsoft.icon"> | Record<"x-icon", "image/x-icon"> | Record<"x-ms-bmp", "image/x-ms-bmp">, Record<"image/bmp", import("@jimp/js-bmp").EncodeOptions> | Record<"image/gif", undefined> | Record<"image/jpeg", import("@jimp/js-jpeg").JPEGOptions> | Record<"image/png", import("@jimp/js-png").PNGOptions> | Record<"image/tiff", undefined> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").EncodeOptions>> | undefined): Promise<void>;
        clone<S extends import("@jimp/types").JimpClass>(this: S): S;
        apply<S extends import("@jimp/types").JimpClass>(this: S, edits: CoreJimpEdit<S>[]): S;
        getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
        getPixelColor(x: number, y: number): number;
        setPixelColor<S extends import("@jimp/types").JimpClass>(this: S, hex: number, x: number, y: number): S;
        hasAlpha(): boolean;
        composite<S extends import("@jimp/types").JimpClass>(this: S, src: import("@jimp/core").CompositeSource, x?: number, y?: number, options?: {
            mode?: import("@jimp/core").BlendMode;
            opacitySource?: number;
            opacityDest?: number;
        }): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, f: (x: number, y: number, idx: number) => any): S;
        scan<S extends import("@jimp/types").JimpClass>(this: S, x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): S;
        scanIterator<S extends import("@jimp/types").JimpClass>(this: S, x?: number, y?: number, w?: number, h?: number): Generator<{
            x: number;
            y: number;
            idx: number;
            image: S;
        }, void, unknown>;
    }, {
        blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
    } & {
        blur<I extends import("@jimp/types").JimpClass>(image: I, r: number): I;
        gaussian<I extends import("@jimp/types").JimpClass>(image: I, r: number): I;
        sharpen<I extends import("@jimp/types").JimpClass>(image: I, options: blur.SharpenOptions): I;
        median<I extends import("@jimp/types").JimpClass>(image: I, radius: number): I;
        bilateral<I extends import("@jimp/types").JimpClass>(image: I, options?: blur.BilateralOptions): I;
    } & {
        roundCorners<I extends import("@jimp/types").JimpClass>(image: I, options: border.RoundCornersOptions): I;
        border<I extends import("@jimp/types").JimpClass>(image: I, options: border.BorderOptions): I;
        boxShadow<I extends import("@jimp/types").JimpClass>(image: I, options?: border.BoxShadowOptions): I;
    } & {
        circle<I extends import("@jimp/types").JimpClass>(image: I, options?: circle.CircleOptions): I;
    } & {
        normalize<I extends import("@jimp/types").JimpClass>(image: I): I;
        invert<I extends import("@jimp/types").JimpClass>(image: I): I;
        brightness<I extends import("@jimp/types").JimpClass>(image: I, val: number): I;
        contrast<I extends import("@jimp/types").JimpClass>(image: I, val: number): I;
        exposure<I extends import("@jimp/types").JimpClass>(image: I, stops: number): I;
        vibrance<I extends import("@jimp/types").JimpClass>(image: I, amount: number): I;
        posterize<I extends import("@jimp/types").JimpClass>(image: I, n: number): I;
        greyscale<I extends import("@jimp/types").JimpClass>(image: I): I;
        opacity<I extends import("@jimp/types").JimpClass>(image: I, f: number): I;
        sepia<I extends import("@jimp/types").JimpClass>(image: I, amount?: number): I;
        gradientMap<I extends import("@jimp/types").JimpClass>(image: I, options: color.GradientMapOptions): I;
        fade<I extends import("@jimp/types").JimpClass>(image: I, f: number): I;
        convolution<I extends import("@jimp/types").JimpClass>(image: I, options: number[][] | {
            kernel: number[][];
            edgeHandling?: import("@jimp/types").Edge | undefined;
            divisor?: number | undefined;
            bias?: number | undefined;
        }): I;
        opaque<I extends import("@jimp/types").JimpClass>(image: I): I;
        pixelate<I extends import("@jimp/types").JimpClass>(image: I, options: number | {
            size: number;
            x?: number | undefined;
            y?: number | undefined;
            w?: number | undefined;
            h?: number | undefined;
        }): I;
        convolute<I extends import("@jimp/types").JimpClass>(image: I, options: number[][] | {
            kernel: number[][];
            x?: number | undefined;
            y?: number | undefined;
            w?: number | undefined;
            h?: number | undefined;
            divisor?: number | undefined;
            bias?: number | undefined;
            preserveAlpha?: boolean | undefined;
        }): I;
        color<I extends import("@jimp/types").JimpClass>(image: I, actions: color.ColorAction[]): I;
        grain<I extends import("@jimp/types").JimpClass>(image: I, options?: color.GrainOptions): I;
    } & {
        resize<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ResizeOptions): I;
        scale<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ScaleOptions): I;
        scaleToFit<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ScaleToFitOptions): I;
    } & {
        contain<I extends import("@jimp/types").JimpClass>(image: I, options: contain.ContainOptions): I;
    } & {
        cover<I extends import("@jimp/types").JimpClass>(image: I, options: cover.CoverOptions): I;
        coverRect<I extends import("@jimp/types").JimpClass>(image: I, options: cover.CoverRectOptions): {
            x: number;
            y: number;
            w: number;
            h: number;
        };
    } & {
        crop<I extends import("@jimp/types").JimpClass>(image: I, options: crop.CropOptions): I;
        autocropRect<I extends import("@jimp/types").JimpClass>(image: I, options?: crop.AutocropOptions): {
            x: number;
            y: number;
            w: number;
            h: number;
        };
        autocrop<I extends import("@jimp/types").JimpClass>(image: I, options?: crop.AutocropOptions): I;
    } & {
        displace<I extends import("@jimp/types").JimpClass>(image: I, options: displace.DisplaceOptions): I;
    } & {
        dither<I extends import("@jimp/types").JimpClass>(image: I, options?: dither.DitherOptions): I;
    } & {
        drawLine<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawLineOptions): I;
        drawRect<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawRectOptions): I;
        drawEllipse<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawEllipseOptions): I;
        drawPolygon<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawPolygonOptions): I;
        drawPath<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawPathOptions): I;
        floodFill<I extends import("@jimp/types").JimpClass>(image: I, options: draw.FloodFillOptions): I;
    } & {
        fisheye<I extends import("@jimp/types").JimpClass>(image: I, options?: fisheye.FisheyeOptions): I;
    } & {
        flip<I extends import("@jimp/types").JimpClass>(image: I, options: flip.FlipOptions): I;
    } & {
        pHash<I extends import("@jimp/types").JimpClass>(image: I, options?: hash.PHashOptions): string;
        hash<I extends import("@jimp/types").JimpClass>(image: I, base?: number, options?: hash.PHashOptions): string;
        distanceFromHash<I extends import("@jimp/types").JimpClass>(image: I, compareHash: string, options?: hash.PHashOptions): number;
        blurhash<I extends import("@jimp/types").JimpClass>(image: I, options?: hash.BlurhashOptions): string;
    } & {
        colorGrade<I extends import("@jimp/types").JimpClass>(image: I, lut: lut.Lut | import("@jimp/types").JimpClass, options?: lut.ColorGradeOptions): I;
    } & {
        mask<I extends import("@jimp/types").JimpClass>(image: I, options: mask.MaskOptions): I;
    } & {
        erode<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
        dilate<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
        open<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
        close<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
    } & {
        print<I extends import("@jimp/types").JimpClass>(image: I, options: print.PrintOptions & print.PrintFontOptions<I>): I;
    } & {
        rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
        affine<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.AffineOptions): I;
        skew<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.SkewOptions): I;
    } & {
        threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
    } & {
        quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
        palette<I extends import("@jimp/types").JimpClass>(image: I, count: number, options?: quantize.PaletteOptions): quantize.PaletteColor[];
        dominantColor<I extends import("@jimp/types").JimpClass>(image: I, options?: quantize.PaletteOptions): number | undefined;
    }>>;
    encodeFrames<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"]>(mime: ProvidedMimeType, frames: import("@jimp/core").FrameInput[], options?: import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, Record<"image/bmp", import("@jimp/js-bmp").EncodeOptions>> | import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, Record<"image/gif", import("@jimp/js-gif").EncodeGifFramesOptions>> | import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, Record<"image/jpeg", import("@jimp/js-jpeg").JPEGOptions>> | import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, Record<"image/png", import("@jimp/js-png").PNGOptions>> | import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, Record<"image/tiff", undefined>> | import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").EncodeIcoOptions>> | import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, Record<"image/x-icon", import("@jimp/js-ico").EncodeIcoOptions>> | import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, Record<"image/x-ms-bmp", import("@jimp/js-bmp").EncodeOptions>> | undefined): Promise<Buffer>;
    writeFrames<Path extends string>(path: Path, frames: import("@jimp/core").FrameInput[], options?: import("@jimp/core").GetOptionsForPath<Path, Record<"bmp", "image/bmp"> | Record<"gif", "image/gif"> | Record<"jpeg", "image/jpeg"> | Record<"png", "image/png"> | Record<"tiff", "image/tiff"> | Record<"vnd.microsoft.icon", "image/vnd.microsoft.icon"> | Record<"x-icon", "image/x-icon"> | Record<"x-ms-bmp", "image/x-ms-bmp">, Record<"image/bmp", import("@jimp/js-bmp").EncodeOptions> | Record<"image/gif", import("@jimp/js-gif").EncodeGifFramesOptions> | Record<"image/jpeg", import("@jimp/js-jpeg").JPEGOptions> | Record<"image/png", import("@jimp/js-png").PNGOptions> | Record<"image/tiff", undefined> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").EncodeOptions>> | undefined): Promise<void>;
} & (new (...args: any[]) => import("@jimp/core").JimpInstanceMethods<{
    bitmap: import("@jimp/types").Bitmap;
    background: number;
    formats: import("@jimp/types").Format<any>[];
    mime?: string;
    iccProfile?: Buffer;
    inspect(): string;
    toString(): string;
    readonly width: number;
    readonly height: number;
    readonly colorSpace: import("@jimp/types").ColorSpaceName | "custom";
    toColorSpace<S extends import("@jimp/types").JimpClass>(this: S, colorSpace: import("@jimp/types").ColorSpaceName): S;
    getBuffer<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<Buffer<ArrayBufferLike>>;
    getBase64<ProvidedMimeType extends ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends import("@jimp/core").GetOptionsForMimeType<ProvidedMimeType, import("@jimp/core").CreateMimeTypeToExportOptions<ReturnType<typeof msBmp | typeof bmp | typeof gif | typeof msIcon | typeof ico | typeof jpeg | typeof png | typeof tiff>>>>(mime: ProvidedMimeType, options?: Options | undefined): Promise<string>;
    write<Path extends string>(path: Path, options?: import("@jimp/core").GetOptionsForPath<Path, Record<"bmp", "image/bmp"> | Record<"gif", "image/gif"> | Record<"jpeg", "image/jpeg"> | Record<"png", "image/png"> | Record<"tiff", "image/tiff"> | Record<"vnd.microsoft.icon", "image/vnd.microsoft.icon"> | Record<"x-icon", "image/x-icon"> | Record<"x-ms-bmp", "image/x-ms-bmp">, Record<"image/bmp", import("@jimp/js-bmp").EncodeOptions> | Record<"image/gif", undefined> | Record<"image/jpeg", import("@jimp/js-jpeg").JPEGOptions> | Record<"image/png", import("@jimp/js-png").PNGOptions> | Record<"image/tiff", undefined> | Record<"image/vnd.microsoft.icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-icon", import("@jimp/js-ico").EncodeIcoOptions> | Record<"image/x-ms-bmp", import("@jimp/js-bmp").EncodeOptions>> | undefined): Promise<void>;
    clone<S extends import("@jimp/types").JimpClass>(this: S): S;
    apply<S extends import("@jimp/types").JimpClass>(this: S, edits: CoreJimpEdit<S>[]): S;
    getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
    getPixelColor(x: number, y: number): number;
    setPixelColor<S extends import("@jimp/types").JimpClass>(this: S, hex: number, x: number, y: number): S;
    hasAlpha(): boolean;
    composite<S extends import("@jimp/types").JimpClass>(this: S, src: import("@jimp/core").CompositeSource, x?: number, y?: number, options?: {
        mode?: import("@jimp/core").BlendMode;
        opacitySource?: number;
        opacityDest?: number;
    }): S;
    scan<S extends import("@jimp/types").JimpClass>(this: S, f: (x: number, y: number, idx: number) => any): S;
    scan<S extends import("@jimp/types").JimpClass>(this: S, x: number, y: number, w: number, h: number, cb: (x: number, y: number, idx: number) => any): S;
    scanIterator<S extends import("@jimp/types").JimpClass>(this: S, x?: number, y?: number, w?: number, h?: number): Generator<{
        x: number;
        y: number;
        idx: number;
        image: S;
    }, void, unknown>;
}, {
    blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
} & {
    blur<I extends import("@jimp/types").JimpClass>(image: I, r: number): I;
    gaussian<I extends import("@jimp/types").JimpClass>(image: I, r: number): I;
    sharpen<I extends import("@jimp/types").JimpClass>(image: I, options: blur.SharpenOptions): I;
    median<I extends import("@jimp/types").JimpClass>(image: I, radius: number): I;
    bilateral<I extends import("@jimp/types").JimpClass>(image: I, options?: blur.BilateralOptions): I;
} & {
    roundCorners<I extends import("@jimp/types").JimpClass>(image: I, options: border.RoundCornersOptions): I;
    border<I extends import("@jimp/types").JimpClass>(image: I, options: border.BorderOptions): I;
    boxShadow<I extends import("@jimp/types").JimpClass>(image: I, options?: border.BoxShadowOptions): I;
} & {
    circle<I extends import("@jimp/types").JimpClass>(image: I, options?: circle.CircleOptions): I;
} & {
    normalize<I extends import("@jimp/types").JimpClass>(image: I): I;
    invert<I extends import("@jimp/types").JimpClass>(image: I): I;
    brightness<I extends import("@jimp/types").JimpClass>(image: I, val: number): I;
    contrast<I extends import("@jimp/types").JimpClass>(image: I, val: number): I;
    exposure<I extends import("@jimp/types").JimpClass>(image: I, stops: number): I;
    vibrance<I extends import("@jimp/types").JimpClass>(image: I, amount: number): I;
    posterize<I extends import("@jimp/types").JimpClass>(image: I, n: number): I;
    greyscale<I extends import("@jimp/types").JimpClass>(image: I): I;
    opacity<I extends import("@jimp/types").JimpClass>(image: I, f: number): I;
    sepia<I extends import("@jimp/types").JimpClass>(image: I, amount?: number): I;
    gradientMap<I extends import("@jimp/types").JimpClass>(image: I, options: color.GradientMapOptions): I;
    fade<I extends import("@jimp/types").JimpClass>(image: I, f: number): I;
    convolution<I extends import("@jimp/types").JimpClass>(image: I, options: number[][] | {
        kernel: number[][];
        edgeHandling?: import("@jimp/types").Edge | undefined;
        divisor?: number | undefined;
        bias?: number | undefined;
    }): I;
    opaque<I extends import("@jimp/types").JimpClass>(image: I): I;
    pixelate<I extends import("@jimp/types").JimpClass>(image: I, options: number | {
        size: number;
        x?: number | undefined;
        y?: number | undefined;
        w?: number | undefined;
        h?: number | undefined;
    }): I;
    convolute<I extends import("@jimp/types").JimpClass>(image: I, options: number[][] | {
        kernel: number[][];
        x?: number | undefined;
        y?: number | undefined;
        w?: number | undefined;
        h?: number | undefined;
        divisor?: number | undefined;
        bias?: number | undefined;
        preserveAlpha?: boolean | undefined;
    }): I;
    color<I extends import("@jimp/types").JimpClass>(image: I, actions: color.ColorAction[]): I;
    grain<I extends import("@jimp/types").JimpClass>(image: I, options?: color.GrainOptions): I;
} & {
    resize<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ResizeOptions): I;
    scale<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ScaleOptions): I;
    scaleToFit<I extends import("@jimp/types").JimpClass>(image: I, options: resize.ScaleToFitOptions): I;
} & {
    contain<I extends import("@jimp/types").JimpClass>(image: I, options: contain.ContainOptions): I;
} & {
    cover<I extends import("@jimp/types").JimpClass>(image: I, options: cover.CoverOptions): I;
    coverRect<I extends import("@jimp/types").JimpClass>(image: I, options: cover.CoverRectOptions): {
        x: number;
        y: number;
        w: number;
        h: number;
    };
} & {
    crop<I extends import("@jimp/types").JimpClass>(image: I, options: crop.CropOptions): I;
    autocropRect<I extends import("@jimp/types").JimpClass>(image: I, options?: crop.AutocropOptions): {
        x: number;
        y: number;
        w: number;
        h: number;
    };
    autocrop<I extends import("@jimp/types").JimpClass>(image: I, options?: crop.AutocropOptions): I;
} & {
    displace<I extends import("@jimp/types").JimpClass>(image: I, options: displace.DisplaceOptions): I;
} & {
    dither<I extends import("@jimp/types").JimpClass>(image: I, options?: dither.DitherOptions): I;
} & {
    drawLine<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawLineOptions): I;
    drawRect<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawRectOptions): I;
    drawEllipse<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawEllipseOptions): I;
    drawPolygon<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawPolygonOptions): I;
    drawPath<I extends import("@jimp/types").JimpClass>(image: I, options: draw.DrawPathOptions): I;
    floodFill<I extends import("@jimp/types").JimpClass>(image: I, options: draw.FloodFillOptions): I;
} & {
    fisheye<I extends import("@jimp/types").JimpClass>(image: I, options?: fisheye.FisheyeOptions): I;
} & {
    flip<I extends import("@jimp/types").JimpClass>(image: I, options: flip.FlipOptions): I;
} & {
    pHash<I extends import("@jimp/types").JimpClass>(image: I, options?: hash.PHashOptions): string;
    hash<I extends import("@jimp/types").JimpClass>(image: I, base?: number, options?: hash.PHashOptions): string;
    distanceFromHash<I extends import("@jimp/types").JimpClass>(image: I, compareHash: string, options?: hash.PHashOptions): number;
    blurhash<I extends import("@jimp/types").JimpClass>(image: I, options?: hash.BlurhashOptions): string;
} & {
    colorGrade<I extends import("@jimp/types").JimpClass>(image: I, lut: lut.Lut | import("@jimp/types").JimpClass, options?: lut.ColorGradeOptions): I;
} & {
    mask<I extends import("@jimp/types").JimpClass>(image: I, options: mask.MaskOptions): I;
} & {
    erode<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
    dilate<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
    open<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
    close<I extends import("@jimp/types").JimpClass>(image: I, options: morphology.MorphologyOptions): I;
} & {
    print<I extends import("@jimp/types").JimpClass>(image: I, options: print.PrintOptions & print.PrintFontOptions<I>): I;
} & {
    rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
    affine<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.AffineOptions): I;
    skew<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.SkewOptions): I;
} & {
    threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
} & {
    quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
    palette<I extends import("@jimp/types").JimpClass>(image: I, count: number, options?: quantize.PaletteOptions): quantize.PaletteColor[];
    dominantColor<I extends import("@jimp/types").JimpClass>(image: I, options?: quantize.PaletteOptions): number | undefined;
}>);
export type JimpInstance = InstanceType<typeof Jimp>;
/** One edit for `image.apply`, e.g. `["resize", { w: 100 }]` */
export type JimpEdit = CoreJimpEdit<JimpInstance>;
export { ColorActionName } from "@jimp/plugin-color";
export type { ColorAction, HueAction, MixAction, RedAction, XorAction, BlueAction, SpinAction, TintAction, GreenAction, ShadeAction, DarkenAction, LightenAction, BrightenAction, SaturateAction, GrayscaleAction, DesaturateAction, GradientMapOptions, GrainOptions, } from "@jimp/plugin-color";
export type { CircleOptions } from "@jimp/plugin-circle";
export type { BorderOptions, BoxShadowOptions, CornerRadius, RoundCornersOptions, } from "@jimp/plugin-border";
export type { AutocropOptions, CropOptions } from "@jimp/plugin-crop";
export type { DitherOptions, DitherPalette } from "@jimp/plugin-dither";
export type { Color, DrawEllipseOptions, DrawLineOptions, DrawPathOptions, DrawPolygonOptions, DrawRectOptions, FillRule, FloodFillOptions, GradientStop, GradientStops, LinearGradient, LineCap, LineJoin, Paint, PathCommand, RadialGradient, } from "@jimp/plugin-draw";
export { ResizeStrategy } from "@jimp/plugin-resize";
export type { ScaleOptions, ResizeOptions, ScaleToFitOptions, } from "@jimp/plugin-resize";
export type { ThresholdOptions, OtsuThresholdOptions, } from "@jimp/plugin-threshold";
export { otsuThreshold } from "@jimp/plugin-threshold";
export { distance, compareHashes, decodeBlurhash } from "@jimp/plugin-hash";
export type { BlurhashOptions, DecodeBlurhashOptions, PHashOptions, } from "@jimp/plugin-hash";
export { parseCubeLut, type Lut, type ColorGradeOptions, } from "@jimp/plugin-lut";
export type { JPEGOptions } from "@jimp/js-jpeg";
export { PNGColorType, PNGFilterType } from "@jimp/js-png";
export { BmpCompression } from "@jimp/js-bmp";
export type { EncodeOptions } from "@jimp/js-bmp";
export { HorizontalAlign, VerticalAlign, BlendMode } from "@jimp/core";
export type { RawImageData, JimpConstructorOptions, JimpSimpleConstructorOptions, ColorSpaceName, ReadOptions, ReadFramesOptions, JimpFrame, JimpFrames, FrameInput, } from "@jimp/core";
export type { EncodeGifFramesOptions } from "@jimp/js-gif";
export { Edge } from "@jimp/types";
export type { Bitmap, RGBAColor, RGBColor } from "@jimp/types";
export { loadFont } from "@jimp/plugin-print/load-font";
export { measureText, measureTextHeight } from "@jimp/plugin-print";
export type { PrintFontOptions, VectorFont, VectorTextLayoutOptions, VectorTextOptions, } from "@jimp/plugin-print";
export { diff } from "@jimp/diff";
export type { DiffOptions, DiffColor } from "@jimp/diff";
export { intToRGBA, rgbaToInt, colorDiff, limit255, cssColorToHex, } from "@jimp/utils";
export type { FlipOptions } from "@jimp/plugin-flip";
export type { FisheyeOptions } from "@jimp/plugin-fisheye";
export type { MorphologyOptions } from "@jimp/plugin-morphology";
export type { AffineOptions, SkewOptions } from "@jimp/plugin-rotate";
export type { DisplaceOptions } from "@jimp/plugin-displace";
export type { CoverOptions } from "@jimp/plugin-cover";
export type { ContainOptions } from "@jimp/plugin-contain";
//# sourceMappingURL=index.d.ts.map