import type { SanitizedConfig } from '../config/types.js';
import type { PayloadRequest } from '../types/index.js';
import type { UploadEdits } from './types.js';
export declare const percentToPixel: (value: any, dimension: any) => number;
type CropImageArgs = {
    cropData: UploadEdits['crop'];
    dimensions: {
        height: number;
        width: number;
    };
    file: PayloadRequest['file'];
    heightInPixels: number;
    sharp: SanitizedConfig['sharp'];
    widthInPixels: number;
};
export declare function cropImage({ cropData, dimensions, file, heightInPixels, sharp, widthInPixels, }: CropImageArgs): Promise<{
    data: Buffer;
    info: import("sharp").OutputInfo;
}>;
export {};
//# sourceMappingURL=cropImage.d.ts.map