export interface RgbaImage { width: number; height: number; /** RGBA, 4 bytes per pixel, row-major from the top-left */ data: Uint8Array; } /** Decode a DDS file with DXT1 or DXT5 compression (the formats Valkyrie's importer writes) */ export declare function decodeDds(buf: Buffer): RgbaImage; /** Mirror top to bottom */ export declare function flipVertical(img: RgbaImage): RgbaImage; /** * Decode a DDS texture as Valkyrie displays it. Valkyrie hands the raw DDS data to Unity's * LoadRawTextureData, which treats the first row as the bottom, and the MoM app's textures are * authored for that. So the picture players see (and the printed tile) is the vertical mirror * of the DDS row order. */ export declare function decodeValkyrieDds(buf: Buffer): RgbaImage; /** Box-filter resize to the target size */ export declare function resize(img: RgbaImage, width: number, height: number): RgbaImage; /** Rotate counter-clockwise by a multiple of 90 degrees (as Valkyrie rotates tiles on screen) */ export declare function rotateCcw(img: RgbaImage, degrees: number): RgbaImage; /** Encode RGBA pixels as a PNG file */ export declare function encodePng(img: RgbaImage): Buffer; //# sourceMappingURL=image.d.ts.map