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

15 lines
497 B
Plaintext
Raw Normal View History

2024-02-14 14:10:47 +00:00
/// <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 {};