import { CHARSET_RANGE } from './Ocr.js';
import { Slide } from './Slide.js';
import { LogSeverityLevel } from './type.js';
/**
 * Model type constants representing different OCR models.
 */
declare enum MODEL_TYPE {
    /**
     * OCR model type.
     */
    OCR = 0,
    /**
     * OCR Beta model type.
     */
    OCR_BETA = 1
}
declare class DdddOcr {
    private _ocr;
    private _ocrBeta;
    private _ocrMode;
    private _detection;
    private _slide;
    /**
     * Class representing an OCR (Optical Character Recognition) model.
     */
    constructor();
    /**
     * Enables the debug mode and prepares the debug folder.
     */
    enableDebug(): this;
    /**
     * Sets the root path for ONNX models.
     */
    setPath(root: string): this;
    /**
     * Sets the log severity level.
     *
     * @param logSeverityLevel Log severity level. See https://github.com/microsoft/onnxruntime/blob/main/include/onnxruntime/core/common/logging/severity.h
     */
    setLogSeverityLevel(logSeverityLevel: LogSeverityLevel): this;
    /**
     * Sets the OCR mode for the instance.
     */
    setOcrMode(mode: MODEL_TYPE): this;
    /**
     * Sets the range restriction for OCR results.
     *
     * This method restricts the characters returned by OCR based on the input:
     * - For `number` input, it applies a predefined character set. See the [CHARSET_RANGE](https://renhaoyeh.github.io/ddddocr-core/enums/CHARSET_RANGE.html) type for the available options.
     * - For `string` input, each character in the string is treated as a valid OCR result.
     */
    setRanges(charsetRange: CHARSET_RANGE | string): this;
    /**
     * Classifies an image by running it through an OCR model.
     */
    classification(url: string): Promise<string>;
    /**
     * Detects objects in an image by extracting bounding boxes and optionally
     * visualizing the detection results on the image.
     *
     * This method reads the image, retrieves bounding boxes, and then optionally
     * draws the detected bounding boxes on the image if debugging is enabled.
     */
    detection(url: string): Promise<number[][]>;
    /**
     * Matches a slider puzzle piece against a background image.
     *
     * - When `simpleTarget` is `false` (default), Canny edge detection is
     *   applied before template matching — suited for puzzle pieces with
     *   transparent backgrounds.
     * - When `simpleTarget` is `true`, grayscale template matching is used
     *   directly — suited for simple (opaque) puzzle pieces.
     */
    slideMatch(targetImage: Parameters<Slide['slideMatch']>[0], backgroundImage: Parameters<Slide['slideMatch']>[1], simpleTarget?: boolean): Promise<import("./Slide.js").SlideMatchResult>;
    /**
     * Finds the slider gap position by comparing two images: one with a gap
     * shadow/highlight visible, and the full background image. Returns the
     * center coordinates of the largest connected difference region.
     */
    slideComparison(targetImage: Parameters<Slide['slideComparison']>[0], backgroundImage: Parameters<Slide['slideComparison']>[1]): Promise<import("./Slide.js").SlideComparisonResult>;
}
export { DdddOcr, CHARSET_RANGE, MODEL_TYPE };
//# sourceMappingURL=index.d.ts.map