import type { _CALayer } from "../QuartzCore/CALayer.js";
import type { _AVCaptureConnection } from "./AVCaptureConnection.js";
import type { _AVCaptureSession } from "./AVCaptureSession.js";
import type { _AVMetadataObject } from "./AVMetadataObject.js";
import type { CGPoint } from "../structs/CGPoint.js";
import type { CGRect } from "../structs/CGRect.js";
import type { AVCaptureVideoOrientation } from "./AVCaptureVideoOrientation.js";
import type { AVLayerVideoGravity } from "./AVLayerVideoGravity.js";
export declare class _AVCaptureVideoPreviewLayer extends _CALayer {
    static alloc(): _AVCaptureVideoPreviewLayer;
    static new(): _AVCaptureVideoPreviewLayer;
    init(): _AVCaptureVideoPreviewLayer;
    /**
     * Creates an AVCaptureVideoPreviewLayer for previewing the visual output of the specified AVCaptureSession. The AVCaptureSession instance to be previewed. A newly initialized AVCaptureVideoPreviewLayer instance.
     */
    static layerWithSession$(session: _AVCaptureSession): _AVCaptureVideoPreviewLayer;
    /**
     * Creates an AVCaptureVideoPreviewLayer for previewing the visual output of the specified AVCaptureSession, but creates no connections to any of the session's eligible video inputs. Only use this initializer if you intend to manually form a connection between a desired AVCaptureInputPort and the receiver using AVCaptureSession's -addConnection: method. The AVCaptureSession instance to be previewed. A newly initialized AVCaptureVideoPreviewLayer instance.
     */
    static layerWithSessionWithNoConnection$(session: _AVCaptureSession): _AVCaptureVideoPreviewLayer;
    /**
     * Creates an AVCaptureVideoPreviewLayer for previewing the visual output of the specified AVCaptureSession. The AVCaptureSession instance to be previewed. A newly initialized AVCaptureVideoPreviewLayer instance.
     */
    initWithSession$(session: _AVCaptureSession): _AVCaptureVideoPreviewLayer;
    /**
     * Creates an AVCaptureVideoPreviewLayer for previewing the visual output of the specified AVCaptureSession, but creates no connections to any of the session's eligible video inputs. Only use this initializer if you intend to manually form a connection between a desired AVCaptureInputPort and the receiver using AVCaptureSession's -addConnection: method. The AVCaptureSession instance to be previewed. A newly initialized AVCaptureVideoPreviewLayer instance.
     */
    initWithSessionWithNoConnection$(session: _AVCaptureSession): _AVCaptureVideoPreviewLayer;
    /**
     * method setSessionWithNoConnection: Attaches the receiver to a given session without implicitly forming a connection to the first eligible video AVCaptureInputPort. Only use this setter if you intend to manually form a connection between a desired AVCaptureInputPort and the receiver using AVCaptureSession's -addConnection: method. The session is retained by the preview layer.
     */
    setSessionWithNoConnection$(session: _AVCaptureSession): void;
    /**
     * Converts a point in layer coordinates to a point of interest in the coordinate space of the capture device providing input to the layer. A CGPoint in layer coordinates. A CGPoint in the coordinate space of the capture device providing input to the layer. AVCaptureDevice pointOfInterest is expressed as a CGPoint where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This convenience method converts a point in the coordinate space of the receiver to a point of interest in the coordinate space of the AVCaptureDevice providing input to the receiver. The conversion takes frameSize and videoGravity into consideration.
     */
    captureDevicePointOfInterestForPoint$(pointInLayer: CGPoint): CGPoint;
    /**
     * Converts a point of interest in the coordinate space of the capture device providing input to the layer to a point in layer coordinates. A CGPoint in the coordinate space of the capture device providing input to the layer. A CGPoint in layer coordinates. AVCaptureDevice pointOfInterest is expressed as a CGPoint where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This convenience method converts a point in the coordinate space of the AVCaptureDevice providing input to the coordinate space of the receiver. The conversion takes frame size and videoGravity into consideration.
     */
    pointForCaptureDevicePointOfInterest$(captureDevicePointOfInterest: CGPoint): CGPoint;
    /**
     * Converts a rectangle in layer coordinates to a rectangle of interest in the coordinate space of an AVCaptureMetadataOutput whose capture device is providing input to the layer. A CGRect in layer coordinates. A CGRect in the coordinate space of the metadata output whose capture device is providing input to the layer. AVCaptureMetadataOutput rectOfInterest is expressed as a CGRect where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This convenience method converts a rectangle in the coordinate space of the receiver to a rectangle of interest in the coordinate space of an AVCaptureMetadataOutput whose AVCaptureDevice is providing input to the receiver. The conversion takes frame size and videoGravity into consideration.
     */
    metadataOutputRectOfInterestForRect$(rectInLayerCoordinates: CGRect): CGRect;
    /**
     * Converts a rectangle of interest in the coordinate space of an AVCaptureMetadataOutput whose capture device is providing input to the layer to a rectangle in layer coordinates. A CGRect in the coordinate space of the metadata output whose capture device is providing input to the layer. A CGRect in layer coordinates. AVCaptureMetadataOutput rectOfInterest is expressed as a CGRect where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. This convenience method converts a rectangle in the coordinate space of an AVCaptureMetadataOutput whose AVCaptureDevice is providing input to the coordinate space of the receiver. The conversion takes frame size and videoGravity into consideration.
     */
    rectForMetadataOutputRectOfInterest$(rectInMetadataOutputCoordinates: CGRect): CGRect;
    /**
     * Converts an AVMetadataObject's visual properties to layer coordinates. An AVMetadataObject originating from the same AVCaptureInput as the preview layer. An AVMetadataObject whose properties are in layer coordinates. AVMetadataObject bounds may be expressed as a rect where {0,0} represents the top left of the picture area, and {1,1} represents the bottom right on an unrotated picture. Face metadata objects likewise express yaw and roll angles with respect to an unrotated picture. -transformedMetadataObjectForMetadataObject: converts the visual properties in the coordinate space of the supplied AVMetadataObject to the coordinate space of the receiver. The conversion takes orientation, mirroring, layer bounds and videoGravity into consideration. If the provided metadata object originates from an input source other than the preview layer's, nil will be returned.
     */
    transformedMetadataObjectForMetadataObject$(metadataObject: _AVMetadataObject): _AVMetadataObject | null;
    /**
     * The AVCaptureSession instance being previewed by the receiver. The session is retained by the preview layer.
     */
    session(): _AVCaptureSession | null;
    setSession$(value: _AVCaptureSession | null): void;
    /**
     * The AVCaptureConnection instance describing the AVCaptureInputPort to which the receiver is connected. When calling initWithSession: or setSession: with a valid AVCaptureSession instance, a connection is formed to the first eligible video AVCaptureInput. If the receiver is detached from a session, the connection property becomes nil.
     */
    connection(): _AVCaptureConnection;
    /**
     * A string defining how the video is displayed within an AVCaptureVideoPreviewLayer bounds rect. Options are AVLayerVideoGravityResize, AVLayerVideoGravityResizeAspect and AVLayerVideoGravityResizeAspectFill. AVLayerVideoGravityResizeAspect is default. See <AVFoundation /AVAnimation.h> for a description of these options.
     */
    videoGravity(): AVLayerVideoGravity;
    setVideoGravity$(value: AVLayerVideoGravity): void;
    /**
     * A BOOL value indicating whether the receiver is currently rendering video frames from its source. An AVCaptureVideoPreviewLayer begins previewing when -[AVCaptureSession startRunning] is called. When associated with an AVCaptureMultiCamSession, all video preview layers are guaranteed to be previewing by the time the blocking call to -startRunning or -commitConfiguration returns. While a session is running, you may enable or disable a video preview layer's connection to re-start or stop the flow of video to the layer. Once you've set enabled to YES, you can observe this property changing from NO to YES and synchronize any UI to take place precisely when the video resumes rendering to the video preview layer.
     */
    previewing(): boolean;
    /**
     * Specifies whether or not the preview layer supports orientation. Changes in orientation are not supported on all hardware configurations. An application should check the value of " orientationSupported" before attempting to manipulate the orientation of the receiver. This property is deprecated. Use AVCaptureConnection's -isVideoOrientationSupported instead.
     * @deprecated Use AVCaptureConnection's isVideoOrientationSupported instead.
     */
    orientationSupported(): boolean;
    /**
     * Specifies the orientation of the preview layer. AVCaptureVideoOrientation and its constants are defined in AVCaptureSession.h. The value of " orientationSupported" must be YES in order to set @"orientation". An exception will be raised if this requirement is ignored. This property is deprecated. Use AVCaptureConnection's -videoOrientation instead.
     * @deprecated Use AVCaptureConnection's videoOrientation instead.
     */
    orientation(): AVCaptureVideoOrientation;
    setOrientation$(value: AVCaptureVideoOrientation): void;
    /**
     * Specifies whether or not the preview layer supports mirroring. Mirroring is not supported on all hardware configurations. An application should check the value of " mirroringSupported" before attempting to manipulate mirroring on the receiver. This property is deprecated. Use AVCaptureConnection's -isVideoMirroringSupported instead.
     * @deprecated Use AVCaptureConnection's isVideoMirroringSupported instead.
     */
    mirroringSupported(): boolean;
    /**
     * Specifies whether or not the value of " mirrored" can change based on configuration of the session. For some session configurations, preview will be mirrored by default. When the value of this property is YES, the value of " mirrored" may change depending on the configuration of the session, for example after switching to a different AVCaptureDeviceInput. The default value is YES. This property is deprecated. Use AVCaptureConnection's -automaticallyAdjustsVideoMirroring instead.
     * @deprecated Use AVCaptureConnection's automaticallyAdjustsVideoMirroring instead.
     */
    automaticallyAdjustsMirroring(): boolean;
    setAutomaticallyAdjustsMirroring$(value: boolean): void;
    /**
     * Specifies whether or not the preview is flipped over a vertical axis. For most applications, it is unnecessary to manipulate preview mirroring manually if " automaticallyAdjustsMirroring" is set to YES. The value of @"automaticallyAdjustsMirroring" must be NO in order to set @"mirrored". The value of @"mirroringSupported" must be YES in order to set @"mirrored". An exception will be raised if the value of @"mirrored" is mutated without respecting these requirements. This property is deprecated. Use AVCaptureConnection's -videoMirrored instead.
     * @deprecated Use AVCaptureConnection's videoMirrored instead.
     */
    mirrored(): boolean;
    setMirrored$(value: boolean): void;
    /**
     * A `BOOL` value that indicates whether the preview layer supports deferred start. You can only set the ``deferredStartEnabled`` property to `true` if the preview layer supports deferred start.
     */
    deferredStartSupported(): boolean;
    /**
     * A `BOOL` value that indicates whether to defer starting this preview layer. When this value is `true`, the session does not prepare the output's resources until some time after ``AVCaptureSession/startRunning`` returns. You can start the visual parts of your user interface (e.g. preview) prior to other parts (e.g. photo/movie capture, metadata output, etc..) to improve startup performance. Set this value to `false` if your app needs video preview immediately for startup, and `true` if it does not. By default, this value is `false` for ``AVCaptureVideoPreviewLayer`` objects, since this object is used to display preview. For best session start performance, set ``deferredStartEnabled`` to `false` for preview layers. If your app contains multiple preview layers, you may want to display the main preview layer as soon as possible and allow the remaining layers to display subsequently. In this case, set ``deferredStartEnabled`` to `true` for the remaining layers. - Note: Setting this property to the same value for all outputs, including ``AVCaptureVideoPreviewLayer`` and ``AVCaptureOutput``, is equivalent to not using deferred start. If ``deferredStartSupported`` is `false`, setting this property value to `true` results in the session throwing an `NSInvalidArgumentException`. - Note: Set this value before calling ``AVCaptureSession/commitConfiguration`` as it requires a lengthy reconfiguration of the capture render pipeline.
     */
    deferredStartEnabled(): boolean;
    setDeferredStartEnabled$(value: boolean): void;
}
