import type { NobjcObject } from "objc-js";
import type { _VNImageBasedRequest } from "./VNImageBasedRequest.js";
import type { _VNRequestProgressProviding } from "./VNRequestProgressProviding.js";
import type { _NSArray } from "../Foundation/NSArray.js";
import type { VNRequestTextRecognitionLevel } from "./VNRequestTextRecognitionLevel.js";
export declare class _VNRecognizeTextRequest extends _VNImageBasedRequest {
    static alloc(): _VNRecognizeTextRequest;
    static new(): _VNRecognizeTextRequest;
    init(): _VNRecognizeTextRequest;
    /**
     * @brief Returns all the supported languages for a given text recognition level. Note that a language supported in one recognition level might not be available in another.
     * @deprecated -supportedRecognitionLanguagesAndReturnError:
     */
    static supportedRecognitionLanguagesForTextRecognitionLevel$revision$error$(recognitionLevel: VNRequestTextRecognitionLevel, requestRevision: number, error: NobjcObject | null): _NSArray | null;
    /**
     * @brief Obtain the collection of supported recognition languages. @discussion This method will return the collection of all possible language identifiers that are recognized by the target request based on its current state of configuration at the time of the call. @param error The address of the variable that will be populated with the error if the call fails. @return The collection of language identifiers, or nil if a failure occurs.
     */
    supportedRecognitionLanguagesAndReturnError$(error: NobjcObject | null): _NSArray | null;
    /**
     * @brief Specify the languages used for the detection. The order of the languages in the array defines the order in which languages will be used during the language processing. The languages are specified as ISO language codes.
     */
    recognitionLanguages(): _NSArray;
    setRecognitionLanguages$(value: _NSArray): void;
    /**
     * @brief An array of strings that will be used at the word recognition stage in addition to the recognition languages. The customWords list takes precedence over the standard lexicon.
     */
    customWords(): _NSArray;
    setCustomWords$(value: _NSArray): void;
    /**
     * @brief The recognition level selects which techniques will be used during the text recognition. There are trade-offs between performance and accuracy.
     */
    recognitionLevel(): VNRequestTextRecognitionLevel;
    setRecognitionLevel$(value: VNRequestTextRecognitionLevel): void;
    /**
     * @brief Determines whether language correction should be applied during the recognition process. Disabling this will return the raw recognition results providing performance benefits but less accurate results.
     */
    usesLanguageCorrection(): boolean;
    setUsesLanguageCorrection$(value: boolean): void;
    /**
     * @brief Language detection will try to automatically identify the script/langauge during the detection and use the appropiate model for recognition and language correction. This can be particularly helpful, if the nature of the content is unkown and with this flag being set it will for instance determine if text is latin vs chinese so you don't have to pick the language model in the first case. But as the language correction cannot always guarantee the correct detection, it is advisable to set the languages, if you have domain knowledge of what language to expect. The default value is NO. Also note that this feature is only available since VNRecognizeTextRequestRevision3 and is a no-op before that.
     */
    automaticallyDetectsLanguage(): boolean;
    setAutomaticallyDetectsLanguage$(value: boolean): void;
    /**
     * @brief Minimum height of the text expected to be recognized, relative to the image height (e.g. for half of the image height, use 0.5). Increasing the size will reduce the memory consumption and speed up the recognition with the trade-off that text smaller than the minimum height may not be recognized properly. If the minimum height is set to 0.0 the image gets processed at the highest possible resolution with no downscaling. With that the processing time will be the longest and the memory usage the highest but the smallest technically readable text will be recognized. The default value for this is 0.0.
     */
    minimumTextHeight(): number;
    setMinimumTextHeight$(value: number): void;
    /** @discussion VNRecognizedTextObservation results. */
    results(): _NSArray | null;
}
export interface _VNRecognizeTextRequest extends _VNRequestProgressProviding {
}
