import { grayscale, greyscale } from "./core/color.js"; import { OptimizeOptions, optimize } from "./core/optimize.js"; import { toBuffer, toFile } from "./core/output.js"; import { CroppingPosition, ReductionKernel, crop, resize } from "./core/resize.js"; export interface GifsicleInternalOptions { greyscale?: boolean; resize?: { width?: number; height?: number; kernel: ReductionKernel; withoutEnlargement: boolean; }; crop?: { width: number; height: number; position: CroppingPosition; }; optimize?: OptimizeOptions; } /** * Export Gifsicle class. */ export declare class Gifsicle { options: GifsicleInternalOptions; input: Buffer; constructor(input: string | Buffer); greyscale: typeof greyscale; grayscale: typeof grayscale; resize: typeof resize; crop: typeof crop; optimize: typeof optimize; toFile: typeof toFile; toBuffer: typeof toBuffer; }