interface SlideMatchResult {
    target: [number, number];
    target_x: number;
    target_y: number;
    confidence?: number;
}
interface SlideComparisonResult {
    target: [number, number];
    target_x: number;
    target_y: number;
}
type ImageInput = string | Buffer | ArrayBuffer;
/**
 * @ignore
 */
declare class Slide {
    /**
     * Matches a slider puzzle piece against a background image.
     *
     * - When `simpleTarget` is `false` (default), the algorithm uses Canny edge
     *   detection on both images before template matching. This is suited for
     *   puzzle pieces with transparent backgrounds.
     * - When `simpleTarget` is `true`, grayscale template matching is used
     *   directly, which is suited for simple (opaque) puzzle pieces.
     *
     * @returns Bounding box `{ target: [x1, y1, x2, y2], target_x, target_y, confidence }`.
     */
    slideMatch(targetImage: ImageInput, backgroundImage: ImageInput, simpleTarget?: boolean): Promise<SlideMatchResult>;
    /**
     * Finds the slider gap position by comparing two images: one with the gap
     * shadow/highlight visible, and the full background image. Returns the
     * center coordinates of the largest connected difference region.
     *
     * @returns `{ target: [x, y], target_x, target_y }` of the gap center.
     */
    slideComparison(targetImage: ImageInput, backgroundImage: ImageInput): Promise<SlideComparisonResult>;
}
export { Slide };
export type { SlideMatchResult, SlideComparisonResult, ImageInput };
//# sourceMappingURL=Slide.d.ts.map