import type { NobjcObject } from "objc-js";
import type { _AVCaptureBracketedStillImageSettings } from "./AVCaptureBracketedStillImageSettings.js";
import type { _AVCaptureConnection } from "./AVCaptureConnection.js";
import type { _AVCaptureOutput } from "./AVCaptureOutput.js";
import type { _NSArray } from "../Foundation/NSArray.js";
import type { _NSData } from "../Foundation/NSData.js";
import type { _NSDictionary } from "../Foundation/NSDictionary.js";
import type { _NSError } from "../Foundation/NSError.js";
export declare class _AVCaptureStillImageOutput extends _AVCaptureOutput {
    static alloc(): _AVCaptureStillImageOutput;
    static new(): _AVCaptureStillImageOutput;
    /**
     * @method jpegStillImageNSDataRepresentation: @abstract Converts the still image data and metadata attachments in a JPEG sample buffer to an NSData representation. @param jpegSampleBuffer The sample buffer carrying JPEG image data, optionally with Exif metadata sample buffer attachments. This method throws an NSInvalidArgumentException if jpegSampleBuffer is NULL or not in the JPEG format. @discussion This method returns an NSData representation of a JPEG still image sample buffer, merging the image data and Exif metadata sample buffer attachments without recompressing the image. The returned NSData is suitable for writing to disk.
     */
    static jpegStillImageNSDataRepresentation$(jpegSampleBuffer: NobjcObject): _NSData | null;
    init(): _AVCaptureStillImageOutput;
    /**
     * @method captureStillImageAsynchronouslyFromConnection:completionHandler: @abstract Initiates an asynchronous still image capture, returning the result to a completion handler. @param connection The AVCaptureConnection object from which to capture the still image. @param handler A block that will be called when the still image capture is complete. The block will be passed a CMSampleBuffer object containing the image data or an NSError object if an image could not be captured. @discussion This method will return immediately after it is invoked, later calling the provided completion handler block when image data is ready. If the request could not be completed, the error parameter will contain an NSError object describing the failure. Attachments to the image data sample buffer may contain metadata appropriate to the image data format. For instance, a sample buffer containing JPEG data may carry a kCGImagePropertyExifDictionary as an attachment. See <ImageIO/CGImageProperties.h> for a list of keys and value types. Clients should not assume that the completion handler will be called on a specific thread. Calls to captureStillImageAsynchronouslyFromConnection:completionHandler: are not synchronized with AVCaptureDevice manual control completion handlers. Setting a device manual control, waiting for its completion, then calling captureStillImageAsynchronouslyFromConnection:completionHandler: DOES NOT ensure that the still image returned reflects your manual control change. It may be from an earlier time. You can compare your manual control completion handler sync time to the returned still image's presentation time. You can retrieve the sample buffer's pts using CMSampleBufferGetPresentationTimestamp(). If the still image has an earlier timestamp, your manual control command does not apply to it.
     */
    captureStillImageAsynchronouslyFromConnection$completionHandler$(connection: _AVCaptureConnection, handler: ((imageDataSampleBuffer: NobjcObject, error: _NSError) => void) | null): void;
    /**
     * @method prepareToCaptureStillImageBracketFromConnection:withSettingsArray:completionHandler: @abstract Allows the receiver to prepare resources in advance of capturing a still image bracket. @param connection The connection through which the still image bracket should be captured. @param settings An array of AVCaptureBracketedStillImageSettings objects. All must be of the same kind of AVCaptureBracketedStillImageSettings subclass, or an NSInvalidArgumentException is thrown. @param handler A user provided block that will be called asynchronously once resources have successfully been allocated for the specified bracketed capture operation. If sufficient resources could not be allocated, the "prepared" parameter contains NO, and "error" parameter contains a non-nil error value. If [settings count] exceeds -maxBracketedCaptureStillImageCount, then AVErrorMaximumStillImageCaptureRequestsExceeded is returned. You should not assume that the completion handler will be called on a specific thread. @discussion -maxBracketedCaptureStillImageCount tells you the maximum number of images that may be taken in a single bracket given the current AVCaptureDevice/AVCaptureSession/AVCaptureStillImageOutput configuration. But before taking a still image bracket, additional resources may need to be allocated. By calling -prepareToCaptureStillImageBracketFromConnection:withSettingsArray:completionHandler: first, you are able to deterministically know when the receiver is ready to capture the bracket with the specified settings array.
     * @deprecated Use AVCapturePhotoOutput setPreparedPhotoSettingsArray:completionHandler: instead.
     */
    prepareToCaptureStillImageBracketFromConnection$withSettingsArray$completionHandler$(connection: _AVCaptureConnection, settings: _NSArray, handler: ((prepared: boolean, error: _NSError) => void) | null): void;
    /**
     * @method captureStillImageBracketAsynchronouslyFromConnection:withSettingsArray:completionHandler: @abstract Captures a still image bracket. @param connection The connection through which the still image bracket should be captured. @param settings An array of AVCaptureBracketedStillImageSettings objects. All must be of the same kind of AVCaptureBracketedStillImageSettings subclass, or an NSInvalidArgumentException is thrown. @param handler A user provided block that will be called asynchronously as each still image in the bracket is captured. If the capture request is successful, the "sampleBuffer" parameter contains a valid CMSampleBuffer, the "stillImageSettings" parameter contains the settings object corresponding to this still image, and a nil "error" parameter. If the bracketed capture fails, sample buffer is NULL and error is non-nil. If [settings count] exceeds -maxBracketedCaptureStillImageCount, then AVErrorMaximumStillImageCaptureRequestsExceeded is returned. You should not assume that the completion handler will be called on a specific thread. @discussion If you have not called -prepareToCaptureStillImageBracketFromConnection:withSettingsArray:completionHandler: for this still image bracket request, the bracket may not be taken immediately, as the receiver may internally need to prepare resources.
     * @deprecated Use AVCapturePhotoOutput capturePhotoWithSettings:delegate: instead.
     */
    captureStillImageBracketAsynchronouslyFromConnection$withSettingsArray$completionHandler$(connection: _AVCaptureConnection, settings: _NSArray, handler: ((sampleBuffer: NobjcObject, stillImageSettings: _AVCaptureBracketedStillImageSettings, error: _NSError) => void) | null): void;
    /**
     * @property outputSettings @abstract Specifies the options the receiver uses to encode still images before they are delivered. @discussion See AVVideoSettings.h for more information on how to construct an output settings dictionary. On iOS, the only currently supported keys are AVVideoCodecKey and kCVPixelBufferPixelFormatTypeKey. Use -availableImageDataCVPixelFormatTypes and -availableImageDataCodecTypes to determine what codec keys and pixel formats are supported. AVVideoQualityKey is supported on iOS 6.0 and later and may only be used when AVVideoCodecKey is set to AVVideoCodecTypeJPEG.
     */
    outputSettings(): _NSDictionary;
    setOutputSettings$(value: _NSDictionary): void;
    /**
     * @property availableImageDataCVPixelFormatTypes @abstract Indicates the supported image pixel formats that can be specified in outputSettings. @discussion The value of this property is an NSArray of NSNumbers that can be used as values for the kCVPixelBufferPixelFormatTypeKey in the receiver's outputSettings property. The first format in the returned list is the most efficient output format.
     */
    availableImageDataCVPixelFormatTypes(): _NSArray;
    /**
     * @property availableImageDataCodecTypes @abstract Indicates the supported image codec formats that can be specified in outputSettings. @discussion The value of this property is an NSArray of AVVideoCodecTypes that can be used as values for the AVVideoCodecKey in the receiver's outputSettings property.
     */
    availableImageDataCodecTypes(): _NSArray;
    /**
     * @property stillImageStabilizationSupported @abstract Indicates whether the receiver supports still image stabilization. @discussion The receiver's automaticallyEnablesStillImageStabilizationWhenAvailable property can only be set if this property returns YES. Its value may change as the session's -sessionPreset or input device's -activeFormat changes.
     */
    stillImageStabilizationSupported(): boolean;
    /**
     * @property automaticallyEnablesStillImageStabilizationWhenAvailable @abstract Indicates whether the receiver should automatically use still image stabilization when necessary. @discussion On a receiver where -isStillImageStabilizationSupported returns YES, image stabilization may be applied to reduce blur commonly found in low light photos. When stabilization is enabled, still image captures incur additional latency. The default value is YES when supported, NO otherwise. Setting this property throws an NSInvalidArgumentException if -isStillImageStabilizationSupported returns NO.
     */
    automaticallyEnablesStillImageStabilizationWhenAvailable(): boolean;
    setAutomaticallyEnablesStillImageStabilizationWhenAvailable$(value: boolean): void;
    /**
     * @property stillImageStabilizationActive @abstract Indicates whether still image stabilization is in use for the current capture. @discussion On a receiver where -isStillImageStabilizationSupported returns YES, and automaticallyEnablesStillImageStabilizationWhenAvailable is set to YES, this property may be key-value observed, or queried from inside your key-value observation callback for the @"capturingStillImage" property, to find out if still image stabilization is being applied to the current capture.
     */
    stillImageStabilizationActive(): boolean;
    /**
     * @property highResolutionStillImageOutputEnabled @abstract Indicates whether the receiver should emit still images at the highest resolution supported by its source AVCaptureDevice's activeFormat. @discussion By default, AVCaptureStillImageOutput emits images with the same dimensions as its source AVCaptureDevice's activeFormat.formatDescription. However, if you set this property to YES, the receiver emits still images at its source AVCaptureDevice's activeFormat.highResolutionStillImageDimensions. Note that if you enable video stabilization (see AVCaptureConnection's preferredVideoStabilizationMode) for any output, the high resolution still images emitted by AVCaptureStillImageOutput may be smaller by 10 or more percent.
     */
    highResolutionStillImageOutputEnabled(): boolean;
    setHighResolutionStillImageOutputEnabled$(value: boolean): void;
    /**
     * @property cameraSensorOrientationCompensationSupported @abstract A read-only BOOL value indicating whether still image buffers may be rotated to match the sensor orientation of earlier generation hardware. @discussion Value is YES for camera configurations which support compensation for the sensor orientation, which is applied to HEIC, JPEG, and uncompressed processed photos only; compensation is never applied to Bayer RAW or Apple ProRaw captures.
     */
    cameraSensorOrientationCompensationSupported(): boolean;
    /**
     * @property cameraSensorOrientationCompensationEnabled @abstract A BOOL value indicating that still image buffers will be rotated to match the sensor orientation of earlier generation hardware. @discussion Default is YES when cameraSensorOrientationCompensationSupported is YES. Set to NO if your app does not require sensor orientation compensation.
     */
    cameraSensorOrientationCompensationEnabled(): boolean;
    setCameraSensorOrientationCompensationEnabled$(value: boolean): void;
    /**
     * @property capturingStillImage @abstract A boolean value that becomes true when a still image is being captured. @discussion The value of this property is a BOOL that becomes true when a still image is being captured, and false when no still image capture is underway. This property is key-value observable.
     */
    capturingStillImage(): boolean;
    /**
     * @property maxBracketedCaptureStillImageCount @abstract Specifies the maximum number of still images that may be taken in a single bracket. @discussion AVCaptureStillImageOutput can only satisfy a limited number of image requests in a single bracket without exhausting system resources. The maximum number of still images that may be taken in a single bracket depends on the size of the images being captured, and consequently may vary with AVCaptureSession -sessionPreset and AVCaptureDevice -activeFormat. Some formats do not support bracketed capture and return a maxBracketedCaptureStillImageCount of 0. This read-only property is key-value observable. If you exceed -maxBracketedCaptureStillImageCount, then -captureStillImageBracketAsynchronouslyFromConnection:withSettingsArray:completionHandler: fails and the completionHandler is called [settings count] times with a NULL sample buffer and AVErrorMaximumStillImageCaptureRequestsExceeded.
     * @deprecated Use AVCapturePhotoOutput maxBracketedCapturePhotoCount instead.
     */
    maxBracketedCaptureStillImageCount(): number;
    /**
     * @property lensStabilizationDuringBracketedCaptureSupported @abstract Indicates whether the receiver supports lens stabilization during bracketed captures. @discussion The receiver's lensStabilizationDuringBracketedCaptureEnabled property can only be set if this property returns YES. Its value may change as the session's -sessionPreset or input device's -activeFormat changes. This read-only property is key-value observable.
     * @deprecated Use AVCapturePhotoOutput lensStabilizationDuringBracketedCaptureSupported instead.
     */
    lensStabilizationDuringBracketedCaptureSupported(): boolean;
    /**
     * @property lensStabilizationDuringBracketedCaptureEnabled @abstract Indicates whether the receiver should use lens stabilization during bracketed captures. @discussion On a receiver where -isLensStabilizationDuringBracketedCaptureSupported returns YES, lens stabilization may be applied to the bracket to reduce blur commonly found in low light photos. When lens stabilization is enabled, bracketed still image captures incur additional latency. Lens stabilization is more effective with longer-exposure captures, and offers limited or no benefit for exposure durations shorter than 1/30 of a second. It is possible that during the bracket, the lens stabilization module may run out of correction range and therefore will not be active for every frame in the bracket. Each emitted CMSampleBuffer from the bracket will have an attachment of kCMSampleBufferAttachmentKey_StillImageLensStabilizationInfo indicating additional information about stabilization was applied to the buffer, if any. The default value of -isLensStabilizationDuringBracketedCaptureEnabled is NO. This value will be set to NO when -isLensStabilizationDuringBracketedCaptureSupported changes to NO. Setting this property throws an NSInvalidArgumentException if -isLensStabilizationDuringBracketedCaptureSupported returns NO. This property is key-value observable.
     * @deprecated Use AVCapturePhotoOutput with AVCapturePhotoBracketSettings instead.
     */
    lensStabilizationDuringBracketedCaptureEnabled(): boolean;
    setLensStabilizationDuringBracketedCaptureEnabled$(value: boolean): void;
}
