import type { _AVCaptureConnection } from "./AVCaptureConnection.js";
import type { _AVCaptureFileOutput } from "./AVCaptureFileOutput.js";
import type { _NSArray } from "../Foundation/NSArray.js";
import type { _NSDictionary } from "../Foundation/NSDictionary.js";
import type { CMTime } from "../structs/CMTime.js";
import type { AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions } from "./AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions.js";
import type { AVCapturePrimaryConstituentDeviceSwitchingBehavior } from "./AVCapturePrimaryConstituentDeviceSwitchingBehavior.js";
export declare class _AVCaptureMovieFileOutput extends _AVCaptureFileOutput {
    static alloc(): _AVCaptureMovieFileOutput;
    static new(): _AVCaptureMovieFileOutput;
    init(): _AVCaptureMovieFileOutput;
    /**
     * @method supportedOutputSettingsKeysForConnection: @abstract Indicates the supported keys that can be specified in setOutputSettings:forConnection:. @param connection The connection delivering the media to be encoded. @discussion Returns an NSArray of NSStrings listing the allowable keys in the receiver's setOutputSettings:forConnection: dictionary.
     */
    supportedOutputSettingsKeysForConnection$(connection: _AVCaptureConnection): _NSArray;
    /**
     * @method outputSettingsForConnection: @abstract Returns the options the receiver uses to encode media from the given connection as it is being recorded. @param connection The connection delivering the media to be encoded. @result An NSDictionary of output settings. @discussion See AVAudioSettings.h for audio connections or AVVideoSettings.h for video connections for more information on the structure of an output settings dictionary. If the returned value is an empty dictionary (i.e. [NSDictionary dictionary], the format of the media from the connection will not be changed before being written to the file. If -setOutputSettings:forConnection: was called with a nil dictionary, this method returns a non-nil dictionary reflecting the settings used by the AVCaptureSession's current sessionPreset.
     */
    outputSettingsForConnection$(connection: _AVCaptureConnection): _NSDictionary;
    /**
     * @method setOutputSettings:forConnection: @abstract Sets the options the receiver uses to encode media from the given connection as it is being recorded. @param outputSettings An NSDictionary of output settings. @param connection The connection delivering the media to be encoded. @discussion See AVAudioSettings.h for audio connections or AVVideoSettings.h for video connections for more information on how to construct an output settings dictionary. A value of an empty dictionary (i.e. +[NSDictionary dictionary]), means that the format of the media from the connection should not be changed before being written to the file. A value of nil means that the output format will be determined by the session preset. In this case, -outputSettingsForConnection: will return a non-nil dictionary reflecting the settings used by the AVCaptureSession's current sessionPreset. On iOS, your outputSettings dictionary may only contain keys listed in - supportedOutputSettingsKeysForConnection:. If you specify any other key, an NSInvalidArgumentException will be thrown. Further restrictions may be imposed on the AVVideoCodecTypeKey. Its value should be present in the -availableVideoCodecTypes array. If AVVideoCompressionPropertiesKey is specified, you must also specify a valid value for AVVideoCodecKey. On iOS versions prior to 12.0, the only settable key for video connections is AVVideoCodecTypeKey. On iOS 12.0 and later, video connections gain support for AVVideoCompressionPropertiesKey. On iOS, -outputSettingsForConnection: always provides a fully populated dictionary. If you call -outputSettingsForConnection: with the intent of overriding a few of the values, you must take care to exclude keys that are not supported before calling -setOutputSettings:forConnection:. When providing an AVVideoCompressionPropertiesKey sub dictionary, you may specify a sparse dictionary. AVCaptureMovieFileOutput will always fill in missing keys with default values for the current AVCaptureSession configuration.
     */
    setOutputSettings$forConnection$(outputSettings: _NSDictionary | null, connection: _AVCaptureConnection): void;
    /**
     * @method recordsVideoOrientationAndMirroringChangesAsMetadataTrackForConnection: @abstract Returns YES if the movie file output will create a timed metadata track that records samples which reflect changes made to the given connection's videoOrientation and videoMirrored properties during recording. @param connection A connection delivering video media to the movie file output. This method throws an NSInvalidArgumentException if the connection does not have a mediaType of AVMediaTypeVideo or if the connection does not terminate at the movie file output. @discussion See setRecordsVideoOrientationAndMirroringChanges:asMetadataTrackForConnection: for details on the behavior controlled by this value. The default value returned is NO.
     */
    recordsVideoOrientationAndMirroringChangesAsMetadataTrackForConnection$(connection: _AVCaptureConnection): boolean;
    /**
     * @method setRecordsVideoOrientationAndMirroringChanges:asMetadataTrackForConnection: @abstract Controls whether or not the movie file output will create a timed metadata track that records samples which reflect changes made to the given connection's videoOrientation and videoMirrored properties during recording. @param doRecordChanges If YES, the movie file output will create a timed metadata track that records samples which reflect changes made to the given connection's videoOrientation and videoMirrored properties during recording. @param connection A connection delivering video media to the movie file output. This method throws an NSInvalidArgumentException if the connection does not have a mediaType of AVMediaTypeVideo or if the connection does not terminate at the movie file output. @discussion When a recording is started the current state of a video capture connection's videoOrientation and videoMirrored properties are used to build the display matrix for the created video track. The movie file format allows only one display matrix per track, which means that any changes made during a recording to the videoOrientation and videoMirrored properties are not captured. For example, a user starts a recording with their device in the portrait orientation, and then partway through the recording changes the device to a landscape orientation. The landscape orientation requires a different display matrix, but only the initial display matrix (the portrait display matrix) is recorded for the video track. By invoking this method the client application directs the movie file output to create an additional track in the captured movie. This track is a timed metadata track that is associated with the video track, and contains one or more samples that contain a Video Orientation value (as defined by EXIF and TIFF specifications, which is enumerated by CGImagePropertyOrientation in <ImageIO/CGImageProperties.h>). The value represents the display matrix corresponding to the AVCaptureConnection's videoOrientation and videoMirrored properties when applied to the input source. The initial sample written to the timed metadata track represents video track's display matrix. During recording additional samples will be written to the timed metadata track whenever the client application changes the video connection's videoOrienation or videoMirrored properties. Using the above example, when the client application detects the user changing the device from portrait to landscape orientation, it updates the video connection's videoOrientation property, thus causing the movie file output to add a new sample to the timed metadata track. After capture, playback and editing applications can use the timed metadata track to enhance their user's experience. For example, when playing back the captured movie, a playback engine can use the samples to adjust the display of the video samples to keep the video properly oriented. Another example is an editing application that uses the sample the sample times to suggest cut points for breaking the captured movie into separate clips, where each clip is properly oriented. The default behavior is to not create the timed metadata track. The doRecordChanges value is only observed at the start of recording. Changes to the value will not have any effect until the next recording is started.
     */
    setRecordsVideoOrientationAndMirroringChanges$asMetadataTrackForConnection$(doRecordChanges: boolean, connection: _AVCaptureConnection): void;
    /**
     * @method setPrimaryConstituentDeviceSwitchingBehaviorForRecording:restrictedSwitchingBehaviorConditions: @abstract When primaryConstituentDeviceSwitchingBehaviorForRecordingEnabled is set to YES, this method controls the switching behavior and conditions, while a movie file is being recorded. @discussion This controls the camera selection behavior used while recording a movie, when enabled through primaryConstituentDeviceSwitchingBehaviorForRecordingEnabled. Setting the switching behavior to anything other than AVCapturePrimaryConstituentDeviceSwitchingBehaviorUnsupported when connected to an AVCaptureDevice that does not support constituent device selection throws an NSInvalidArgumentException. Setting restrictedSwitchingBehaviorConditions to something other than AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionNone while setting switchingBehavior to something other than AVCapturePrimaryConstituentDeviceSwitchingBehaviorRestricted throws an NSInvalidArgumentException exception.
     */
    setPrimaryConstituentDeviceSwitchingBehaviorForRecording$restrictedSwitchingBehaviorConditions$(switchingBehavior: AVCapturePrimaryConstituentDeviceSwitchingBehavior, restrictedSwitchingBehaviorConditions: AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions): void;
    /**
     * @property movieFragmentInterval @abstract Specifies the frequency with which movie fragments should be written. @discussion When movie fragments are used, a partially written QuickTime movie file whose writing is unexpectedly interrupted can be successfully opened and played up to multiples of the specified time interval. A value of kCMTimeInvalid indicates that movie fragments should not be used, but that only a movie atom describing all of the media in the file should be written. The default value of this property is ten seconds. Changing the value of this property will not affect the movie fragment interval of the file currently being written, if there is one. For best writing performance on external storage devices, set the movieFragmentInterval to 10 seconds or greater. If the size of a movie fragment is greater than or equal to 2GB, an interval is added at 2GB mark.
     */
    movieFragmentInterval(): CMTime;
    setMovieFragmentInterval$(value: CMTime): void;
    /**
     * @property metadata @abstract A collection of metadata to be written to the receiver's output files. @discussion The value of this property is an array of AVMetadataItem objects representing the collection of top-level metadata to be written in each output file.
     */
    metadata(): _NSArray | null;
    setMetadata$(value: _NSArray | null): void;
    /**
     * @property availableVideoCodecTypes @abstract Indicates the supported video codec formats that can be specified in setOutputSettingsForConnection:. @discussion The value of this property is an NSArray of AVVideoCodecTypes that can be used as values for the AVVideoCodecKey in the receiver's setOutputSettingsForConnection: dictionary. The array of available video codecs may change depending on the current session preset. The first codec in the array is used by default when recording a file.
     */
    availableVideoCodecTypes(): _NSArray;
    /**
     * @property primaryConstituentDeviceSwitchingBehaviorForRecordingEnabled @abstract Enable or disable a constituent device selection behavior when recording. @discussion This property enables a camera selection behavior to be applied when recording a movie. Once recording starts, the specified behavior and conditions take effect. Once recording stops the camera selection will change back to the primaryConstituentDeviceSwitchingBehavior specified by the AVCaptureDevice. By default, this property is set to YES when connected to an AVCaptureDevice that supports constituent device switching.
     */
    primaryConstituentDeviceSwitchingBehaviorForRecordingEnabled(): boolean;
    setPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled$(value: boolean): void;
    /**
     * @property primaryConstituentDeviceSwitchingBehaviorForRecording @abstract The primaryConstituentDeviceSwitchingBehavior as set by -[AVCaptureMovieFileOutput setPrimaryConstituentDeviceSwitchingBehaviorForRecording:restrictedSwitchingBehaviorConditions:]. @discussion By default, this property is set to AVCapturePrimaryConstituentDeviceSwitchingBehaviorRestricted. This property is key-value observable.
     */
    primaryConstituentDeviceSwitchingBehaviorForRecording(): AVCapturePrimaryConstituentDeviceSwitchingBehavior;
    /**
     * @property primaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording @abstract The primaryConstituentDeviceRestrictedSwitchingBehaviorConditions as set by -[AVCaptureMovieFileOutput setPrimaryConstituentDeviceSwitchingBehaviorForRecording:restrictedSwitchingBehaviorConditions:]. @discussion By default, this property is set to AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorCondition{VideoZoomChanged | FocusModeChanged | ExposureModeChanged}. This property is key-value observable.
     */
    primaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording(): AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions;
    /**
     * @property spatialVideoCaptureSupported @abstract Returns whether or not capturing spatial video to a file is supported. Note that in order to be supported, two conditions must be met. (1) The source AVCaptureDevice's activeFormat.spatialVideoCaptureSupported property must return YES. (2) The video AVCaptureConnection's activeVideoStabilizationMode property must return AVCaptureVideoStabilizationModeCinematic, AVCaptureVideoStabilizationModeCinematicExtended, or AVCaptureVideoStabilizationModeCinematicExtendedEnhanced.
     */
    spatialVideoCaptureSupported(): boolean;
    /**
     * @property spatialVideoCaptureEnabled @abstract Enable or disable capturing spatial video to a file. @discussion This property enables capturing spatial video to a file. By default, this property is set to NO. Check spatialVideoCaptureSupported before setting this property, as setting to YES will throw an exception if the feature is not supported. On iOS, enabling spatial video will overwrite the connected AVCaptureDevice's `videoZoomFactor`, `minAvailableVideoZoomFactor`, and `maxAvailableVideoZoomFactor` to the field of view of the narrower camera in the pair. When spatialVideoCaptureEnabled is true, setting -[AVCaptureDeviceInput activeVideoMinFrameDuration] or -[AVCaptureDeviceInput activeVideoMaxFrameDuration] throws an NSInvalidArgumentException. Enabling this property throws an NSInvalidArgumentException if -[AVCaptureDevice isVideoFrameDurationLocked] or -[AVCaptureDevice isFollowingExternalSyncDevice] is true.
     */
    spatialVideoCaptureEnabled(): boolean;
    setSpatialVideoCaptureEnabled$(value: boolean): void;
}
