astro-ghostcms/.pnpm-store/v3/files/ff/7a50b40cc55971efe6b3badb4fe...

15 lines
497 B
Plaintext

/// <reference types="node" resolution-mode="require"/>
import type { ImageOutputFormat } from '../../../types.js';
type RotateOperation = {
type: 'rotate';
numRotations: number;
};
type ResizeOperation = {
type: 'resize';
width?: number;
height?: number;
};
export type Operation = RotateOperation | ResizeOperation;
export declare function processBuffer(buffer: Buffer, operations: Operation[], encoding: ImageOutputFormat, quality?: number): Promise<Uint8Array>;
export {};