import { DdddOcr } from './DdddOcr.js';
declare class Detection extends DdddOcr {
    /**
     * Path to the ONNX model for standard OCR.
     * @private
     */
    private _ortOnnxPath;
    private _ocrDetectionOrtSessionPending;
    /**
     * Detection
     */
    constructor(onnxPath: string);
    /**
     * Pre-processes an image by resizing and converting it into a tensor format.
     */
    private _preProcessImage;
    /**
     * Post-processes the output tensor.
     */
    private _demoPostProcess;
    private _calcBbox;
    /**
     * Extracts the bounding box coordinates (x1, y1, x2, y2) from the given boxes based on the specified order.
     */
    private _getCurrentBox;
    /**
     * Filters the indices of an array based on the given threshold. Only indices where the corresponding value is less than or equal to the threshold are returned.
     */
    private _where;
    /**
     * Single class NMS implemented in JS.
     */
    private _nms;
    /**
     * Multiclass NMS implemented in JS. Class-agnostic version.
     */
    private _multiclassNmsClassAgnostic;
    /**
     * Multiclass NMS implemented in JS.
     */
    private _multiclassNms;
    private _parseToXyxy;
    private _postProcess;
    private _loadDetectionOrtSession;
    private _runDetection;
    /**
     * 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[][]>;
}
export { Detection };
//# sourceMappingURL=Detection.d.ts.map