import type { NobjcObject } from "objc-js";
import type { _AVAsset } from "./AVAsset.js";
import type { _AVAsynchronousCIImageFilteringRequest } from "./AVAsynchronousCIImageFilteringRequest.js";
import type { _AVVideoComposition } from "./AVVideoComposition.js";
import type { _AVVideoCompositionCoreAnimationTool } from "./AVVideoCompositionCoreAnimationTool.js";
import type { _AVVideoCompositionInstruction } from "./AVVideoCompositionInstruction.js";
import type { _NSArray } from "../Foundation/NSArray.js";
import type { _NSError } from "../Foundation/NSError.js";
import type { _NSString } from "../Foundation/NSString.js";
import type { CGSize } from "../structs/CGSize.js";
import type { CMTime } from "../structs/CMTime.js";
import type { AVVideoCompositionPerFrameHDRDisplayMetadataPolicy } from "./AVVideoCompositionPerFrameHDRDisplayMetadataPolicy.js";
export declare class _AVMutableVideoComposition extends _AVVideoComposition {
    static alloc(): _AVMutableVideoComposition;
    static new(): _AVMutableVideoComposition;
    init(): _AVMutableVideoComposition;
    /**
     * Returns a new instance of AVMutableVideoComposition. The returned AVMutableVideoComposition will have a frameDuration of kCMTimeZero, a renderSize of {0.0, 0.0}, a nil array of instructions, and a nil animationTool.
     */
    static videoComposition(): _AVMutableVideoComposition;
    /**
     * Returns a new instance of AVMutableVideoComposition with values and instructions suitable for presenting the video tracks of the specified asset according to its temporal and geometric properties and those of its tracks. The returned AVMutableVideoComposition will have instructions that respect the spatial properties and timeRanges of the specified asset's video tracks. The client can set sourceTrackIDForFrameTiming to kCMPersistentTrackID_Invalid and frameDuration to an appropriate value in order to specify the maximum output frame rate independent of the source track timing. It will also have the following values for its properties: - If the asset has exactly one video track, the original timing of the source video track will be used. If the asset has more than one video track, and the nominal frame rate of any of video tracks is known, the reciprocal of the greatest known nominalFrameRate will be used as the value of frameDuration. Otherwise, a default framerate of 30fps is used. - If the specified asset is an instance of AVComposition, the renderSize will be set to the naturalSize of the AVComposition; otherwise the renderSize will be set to a value that encompasses all of the asset's video tracks. - A renderScale of 1.0. - A nil animationTool. If the specified asset has no video tracks, this method will return an AVMutableVideoComposition instance with an empty collection of instructions. - Parameter asset: An instance of AVAsset. For best performance, ensure that the duration and tracks properties of the asset are already loaded before invoking this method. - Returns: An instance of AVMutableVideoComposition.
     * @deprecated Use videoCompositionWithPropertiesOfAsset:completionHandler: instead
     */
    static videoCompositionWithPropertiesOfAsset$(asset: _AVAsset): _AVMutableVideoComposition;
    /**
     * Returns a new instance of AVMutableVideoComposition with values and instructions suitable for presenting the video tracks of the specified asset according to its temporal and geometric properties and those of its tracks, and also overrides default properties with those from a prototypeInstruction. Also see videoCompositionWithPropertiesOfAsset:. The returned AVVideoComposition will have instructions that respect the spatial properties and timeRanges of the specified asset's video tracks. Anything not pertaining to spatial layout and timing, such as background color for their composition or post-processing behaviors, is eligible to be specified via a prototype instruction. Example: To add a background color, ```objc myPrototypeInstruction = [[AVMutableVideoCompositionInstruction alloc] init]; myPrototypeInstruction.backgroundColor = myCGColorRef; // Do not use constant CGColorRef colors here. myVideoComposition = [AVVideoComposition videoCompositionWithPropertiesOfAsset:myAsset prototypeInstruction:myPrototypeInstruction]; ``` - Parameter asset: An instance of AVAsset. For best performance, ensure that the duration and tracks properties of the asset are already loaded before invoking this method. - Parameter prototypeInstruction: Custom instructions that the client can choose to override. - Returns: An instance of AVMutableVideoComposition.
     * @deprecated Use videoCompositionWithPropertiesOfAsset:prototypeInstruction:completionHandler: instead
     */
    static videoCompositionWithPropertiesOfAsset$prototypeInstruction$(asset: _AVAsset, prototypeInstruction: _AVVideoCompositionInstruction): _AVMutableVideoComposition;
    /**
     * Vends a new instance of AVMutableVideoComposition with values and instructions suitable for presenting the video tracks of the specified asset according to its temporal and geometric properties and those of its tracks, and also overrides default properties with those from a prototypeInstruction. Also see videoCompositionWithPropertiesOfAsset:completionHandler:. The new AVMutableVideoComposition will have instructions that respect the spatial properties and timeRanges of the specified asset's video tracks. Anything not pertaining to spatial layout and timing, such as background color for their composition or post-processing behaviors, is eligible to be specified via a prototype instruction. Example: To add a background color, ```objc myPrototypeInstruction = [[AVMutableVideoCompositionInstruction alloc] init]; myPrototypeInstruction.backgroundColor = myCGColorRef; // Do not use constant CGColorRef colors here. myVideoComposition = [AVVideoComposition videoCompositionWithPropertiesOfAsset:myAsset prototypeInstruction:myPrototypeInstruction completionHandler:^(AVMutableVideoComposition * _Nullable myVideoComposition, NSError * _Nullable error) { if (myVideoComposition != nil) { // use myVideoComposition } else { // handle error } }]; ``` - Parameter asset: An instance of AVAsset. - Parameter prototypeInstruction: Custom instructions that the client can choose to override. - Parameter completionHandler: A block that is invoked when the new video composition has finished being created. If the `videoComposition` parameter is nil, the `error` parameter describes the failure that occurred.
     */
    static videoCompositionWithPropertiesOfAsset$prototypeInstruction$completionHandler$(asset: _AVAsset, prototypeInstruction: _AVVideoCompositionInstruction, completionHandler: ((videoComposition: _AVMutableVideoComposition, error: _NSError) => void) | null): void;
    /**
     * Returns a new instance of AVMutableVideoComposition with values and instructions that will apply the specified handler block to video frames represented as instances of CIImage. The returned AVMutableVideoComposition will cause the specified handler block to be called to filter each frame of the asset's first enabled video track. The handler block should use the properties of the provided AVAsynchronousCIImageFilteringRequest and respond using finishWithImage:context: with a "filtered" new CIImage (or the provided source image for no affect). In the event of an error, respond to the request using finishWithError:. The error can be observed via AVPlayerItemFailedToPlayToEndTimeNotification, see AVPlayerItemFailedToPlayToEndTimeErrorKey in notification payload. The client can set sourceTrackIDForFrameTiming to kCMPersistentTrackID_Invalid and frameDuration to an appropriate value in order to specify the maximum output frame rate independent of the source track timing. The video composition will also have the following values for its properties: - The original timing of the asset's first enabled video track will be used. - A renderSize that encompasses the asset's first enabled video track respecting the track's preferredTransform. - A renderScale of 1.0. The default CIContext has the following properties: - iOS: Device RGB color space - macOS: sRGB color space Example usage: ```objc playerItem.videoComposition = [AVMutableVideoComposition videoCompositionWithAsset:srcAsset applyingCIFiltersWithHandler: ^(AVAsynchronousCIImageFilteringRequest *request) { NSError *err = nil; CIImage *filtered = myRenderer(request, &err); if (filtered) [request finishWithImage:filtered context:nil]; else [request finishWithError:err]; }]; ``` - Parameter asset: An instance of AVAsset. For best performance, ensure that the duration and tracks properties of the asset are already loaded before invoking this method. - Returns: An instance of AVMutableVideoComposition.
     * @deprecated Use videoCompositionWithAsset:applyingCIFiltersWithHandler:completionHandler: instead
     */
    static videoCompositionWithAsset$applyingCIFiltersWithHandler$(asset: _AVAsset, applier: (request: _AVAsynchronousCIImageFilteringRequest) => void): _AVMutableVideoComposition;
    /**
     * Indicates the custom compositor class to use. If nil, the default, internal video compositor is used
     */
    customVideoCompositorClass(): NobjcObject;
    setCustomVideoCompositorClass$(value: NobjcObject): void;
    /**
     * Indicates the interval which the video composition, when enabled, should render composed video frames
     */
    frameDuration(): CMTime;
    setFrameDuration$(value: CMTime): void;
    /**
     * If sourceTrackIDForFrameTiming is not kCMPersistentTrackID_Invalid, frame timing for the video composition is derived from the source asset's track with the corresponding ID. This may be used to preserve a source asset's variable frame timing. If an empty edit is encountered in the source asset’s track, the compositor composes frames as needed up to the frequency specified in frameDuration property.
     */
    sourceTrackIDForFrameTiming(): number;
    setSourceTrackIDForFrameTiming$(value: number): void;
    /** Indicates the size at which the video composition, when enabled, should render */
    renderSize(): CGSize;
    setRenderSize$(value: CGSize): void;
    /**
     * Indicates the scale at which the video composition should render. May only be other than 1.0 for a video composition set on an AVPlayerItem
     */
    renderScale(): number;
    setRenderScale$(value: number): void;
    /**
     * Indicates instructions for video composition via an NSArray of instances of classes implementing the AVVideoCompositionInstruction protocol. For the first instruction in the array, timeRange.start must be less than or equal to the earliest time for which playback or other processing will be attempted (note that this will typically be kCMTimeZero). For subsequent instructions, timeRange.start must be equal to the prior instruction's end time. The end time of the last instruction must be greater than or equal to the latest time for which playback or other processing will be attempted (note that this will often be the duration of the asset with which the instance of AVVideoComposition is associated).
     */
    instructions(): _NSArray;
    setInstructions$(value: _NSArray): void;
    /**
     * Indicates a special video composition tool for use of Core Animation; may be nil
     */
    animationTool(): _AVVideoCompositionCoreAnimationTool | null;
    setAnimationTool$(value: _AVVideoCompositionCoreAnimationTool | null): void;
    /**
     * List of all track IDs for tracks from which sample data should be presented to the compositor at any point in the overall composition. Currently only tracks of type kCMMediaType_Metadata are allowed to be specified.
     */
    sourceSampleDataTrackIDs(): _NSArray;
    setSourceSampleDataTrackIDs$(value: _NSArray): void;
    /**
     * The output buffers of the video composition can be specified with the outputBufferDescription. The value is an array of CMTagCollectionRef objects that describes the output buffers. If the video composition will output tagged buffers, the details of those buffers should be specified with CMTags. Specifically, the StereoView (eyes) and ProjectionKind must be specified. The behavior is undefined if the output tagged buffers do not match the outputBufferDescription. The default is nil, which means monoscopic output. Note that an empty array is not valid. An exception will be thrown if the objects in the array are not of type CMTagCollectionRef. Note that tagged buffers are only supported for custom compositors.
     */
    outputBufferDescription(): _NSArray;
    setOutputBufferDescription$(value: _NSArray): void;
    /**
     * Rendering will use these primaries and frames will be tagged as such. If the value of this property is nil then the source's primaries will be propagated and used. Default is nil. Valid values are those suitable for AVVideoColorPrimariesKey. Generally set as a triple along with colorYCbCrMatrix and colorTransferFunction.
     */
    colorPrimaries(): _NSString;
    setColorPrimaries$(value: _NSString): void;
    /**
     * Rendering will use this matrix and frames will be tagged as such. If the value of this property is nil then the source's matrix will be propagated and used. Default is nil. Valid values are those suitable for AVVideoYCbCrMatrixKey. Generally set as a triple along with colorPrimaries and colorTransferFunction.
     */
    colorYCbCrMatrix(): _NSString;
    setColorYCbCrMatrix$(value: _NSString): void;
    /**
     * Rendering will use this transfer function and frames will be tagged as such. If the value of this property is nil then the source's transfer function will be propagated and used. Default is nil. Valid values are those suitable for AVVideoTransferFunctionKey. Generally set as a triple along with colorYCbCrMatrix and colorYCbCrMatrix.
     */
    colorTransferFunction(): _NSString;
    setColorTransferFunction$(value: _NSString): void;
    /**
     * Configures policy for per frame HDR display metadata on the rendered frame Allows the system to identify situations where HDR metadata can be generated and attached to the rendered video frame. Default is AVVideoCompositionPerFrameHDRDisplayMetadataPolicyPropagate. Any HDR metadata attached to the composed frame will be propagated to the rendered video frames.
     */
    perFrameHDRDisplayMetadataPolicy(): AVVideoCompositionPerFrameHDRDisplayMetadataPolicy;
    setPerFrameHDRDisplayMetadataPolicy$(value: AVVideoCompositionPerFrameHDRDisplayMetadataPolicy): void;
}
