8889841c// Type definitions for imagemin 8.0 // Project: https://github.com/imagemin/imagemin#readme // Definitions by: Romain Faust // Jeff Chan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /** * @async */ declare function imagemin(input: ReadonlyArray, options?: Options): Promise; declare namespace imagemin { /** * @async */ function buffer(input: Buffer, options?: BufferOptions): Promise; } export type Plugin = (input: Buffer) => Promise; export interface Options { destination?: string | undefined; plugins: ReadonlyArray; glob?: boolean | undefined; } export interface Result { data: Buffer; sourcePath: string; destinationPath: string; } export interface BufferOptions { plugins: ReadonlyArray; } export default imagemin;