25 lines
822 B
TypeScript
25 lines
822 B
TypeScript
/// <reference types="node" />
|
|
import { ImageOptions } from './Image.types';
|
|
export declare function generateImageAsync(options: {
|
|
projectRoot: string;
|
|
cacheType?: string;
|
|
}, imageOptions: ImageOptions): Promise<{
|
|
source: Buffer;
|
|
name: string;
|
|
}>;
|
|
export declare function generateFaviconAsync(pngImageBuffer: Buffer, sizes?: number[]): Promise<Buffer>;
|
|
/**
|
|
* Layers the provided foreground image over the provided background image.
|
|
*
|
|
* @param foregroundImageBuffer
|
|
* @param foregroundImageBuffer
|
|
* @param x pixel offset from the left edge, defaults to 0.
|
|
* @param y pixel offset from the top edge, defaults to 0.
|
|
*/
|
|
export declare function compositeImagesAsync({ foreground, background, x, y, }: {
|
|
foreground: Buffer;
|
|
background: Buffer;
|
|
x?: number;
|
|
y?: number;
|
|
}): Promise<Buffer>;
|