diff --git a/index.d.ts b/index.d.ts index a9dd5d8..efb19e7 100644 --- a/index.d.ts +++ b/index.d.ts @@ -262,18 +262,18 @@ declare module looksSame { B: number; } - export async function getDiffArea( + export function getDiffArea( image1: string | Buffer | BoundedImage, image2: string | Buffer | BoundedImage ): Promise; - export async function getDiffArea( + export function getDiffArea( image1: string | Buffer | BoundedImage, image2: string | Buffer | BoundedImage, opts: GetDiffAreaOptions ): Promise; - export async function createDiff(options: CreateDiffOptions): Promise; - export async function createDiff(options: CreateDiffAsBufferOptions): Promise; + export function createDiff(options: CreateDiffOptions): Promise; + export function createDiff(options: CreateDiffAsBufferOptions): Promise; /** * Compare two colors @@ -291,13 +291,13 @@ declare module looksSame { * @param image2 The second image * @param options The options passed to looksSame function */ -async function looksSame( +declare function looksSame( image1: string | Buffer | looksSame.BoundedImage, image2: string | Buffer | looksSame.BoundedImage, options?: looksSame.LooksSameOptions & { createDiffImage?: false }, ): Promise>; -async function looksSame( +declare function looksSame( image1: string | Buffer | looksSame.BoundedImage, image2: string | Buffer | looksSame.BoundedImage, options: looksSame.LooksSameOptions & { createDiffImage: true },