interface RgbaBitmap {
    data: Uint8Array | Buffer;
    width: number;
    height: number;
}
interface GrayImage {
    data: Uint8Array;
    width: number;
    height: number;
}
interface RgbImage {
    data: Uint8Array;
    width: number;
    height: number;
}
interface MatchResult {
    x: number;
    y: number;
    score: number;
}
interface BoundingBox {
    x: number;
    y: number;
    width: number;
    height: number;
}
declare function bitmapToGray(bitmap: RgbaBitmap): GrayImage;
declare function bitmapToRgb(bitmap: RgbaBitmap): RgbImage;
declare function absdiffRgb(a: RgbImage, b: RgbImage): RgbImage;
declare function rgbToGray(image: RgbImage): GrayImage;
declare function threshold(gray: GrayImage, thresh: number): GrayImage;
declare function morphologyClose(binary: GrayImage): GrayImage;
declare function morphologyOpen(binary: GrayImage): GrayImage;
declare function canny(gray: GrayImage, lowThresh?: number, highThresh?: number): GrayImage;
declare function matchTemplateCcoeffNormed(image: GrayImage, template: GrayImage): MatchResult;
declare function largestContourBbox(binary: GrayImage): BoundingBox | null;
export { bitmapToGray, bitmapToRgb, rgbToGray, absdiffRgb, threshold, morphologyClose, morphologyOpen, canny, matchTemplateCcoeffNormed, largestContourBbox };
export type { GrayImage, RgbImage, MatchResult, BoundingBox, RgbaBitmap };
//# sourceMappingURL=cv-utils.d.ts.map