import type { NobjcObject } from "objc-js";
import type { _NSArray } from "../Foundation/NSArray.js";
import type { _NSError } from "../Foundation/NSError.js";
import type { _NSObject } from "../Foundation/NSObject.js";
import type { _AVAsset } from "./AVAsset.js";
import type { _AVVideoCompositing } from "./AVVideoCompositing.js";
import type { _AVVideoComposition } from "./AVVideoComposition.js";
import type { CGSize } from "../structs/CGSize.js";
import type { CMTime } from "../structs/CMTime.js";
import type { AVAssetImageGeneratorApertureMode } from "./AVAssetImageGeneratorApertureMode.js";
import type { AVAssetImageGeneratorDynamicRangePolicy } from "./AVAssetImageGeneratorDynamicRangePolicy.js";
import type { AVAssetImageGeneratorResult } from "./AVAssetImageGeneratorResult.js";
export declare class _AVAssetImageGenerator extends _NSObject {
    static alloc(): _AVAssetImageGenerator;
    static new(): _AVAssetImageGenerator;
    init(): _AVAssetImageGenerator;
    /**
     * Returns an instance of AVAssetImageGenerator for use with the specified asset. The asset from which images will be extracted. An instance of AVAssetImageGenerator This method may succeed even if the asset possesses no visual tracks at the time of initialization. Clients may wish to test whether an asset has any tracks with the visual characteristic via -[AVAsset tracksWithMediaCharacteristic:]. Note also that assets that belong to a mutable subclass of AVAsset, AVMutableComposition or AVMutableMovie, may gain visual tracks after initialization of an associated AVAssetImageGenerator. However, the results of image generation are undefined if mutations of the asset occur while images are being generated. AVAssetImageGenerator will use the default enabled video track(s) to generate images.
     */
    static assetImageGeneratorWithAsset$(asset: _AVAsset): _AVAssetImageGenerator;
    /**
     * Initializes an instance of AVAssetImageGenerator for use with the specified asset. The asset from which images will be extracted. An instance of AVAssetImageGenerator This method may succeed even if the asset possesses no visual tracks at the time of initialization. Clients may wish to test whether an asset has any tracks with the visual characteristic via -[AVAsset tracksWithMediaCharacteristic:]. Note also that assets that belong to a mutable subclass of AVAsset, AVMutableComposition or AVMutableMovie, may gain visual tracks after initialization of an associated AVAssetImageGenerator. However, the results of image generation are undefined if mutations of the asset occur while images are being generated. AVAssetImageGenerator will use the default enabled video track(s) to generate images.
     */
    initWithAsset$(asset: _AVAsset): _AVAssetImageGenerator;
    /**
     * Returns a CFRetained CGImageRef for an asset at or near the specified time. The time at which the image of the asset is to be created. A pointer to a CMTime to receive the time at which the image was actually generated. If you are not interested in this information, pass NULL. An error object describing the reason for failure, in the event that this method returns NULL. A CGImageRef. Returns the CGImage synchronously. Ownership follows the Create Rule. Because of the nature of timed audiovisual media, generating an image may take significant time. AVAssetImageGenerator may have to block the calling thread in order to do so. In order to avoid blocking, clients can use -generateCGImagesAsynchronouslyForTimes:completionHandler: to request that one or more images be generated asynchronously and to be notified when they become available. On iOS and tvOS, it is particularly important to avoid blocking. To preserve responsiveness, a synchronous request that blocks for too long (eg, a request to generate an image from an asset on a slow HTTP server) may lead to media services being reset.
     * @deprecated Use generateCGImageAsynchronouslyForTime:completionHandler: instead
     */
    copyCGImageAtTime$actualTime$error$(requestedTime: CMTime, actualTime: NobjcObject | null, outError: NobjcObject | null): NobjcObject;
    /**
     * Returns a series of CGImageRefs for an asset at or near the specified times. An NSArray of NSValues, each containing a CMTime, specifying the asset times at which an image is requested. A block that will be called when an image request is complete. Employs an efficient "batch mode" for getting images in time order. The client will receive exactly one handler callback for each requested time in requestedTimes. Changes to generator properties (snap behavior, maximum size, etc...) will not affect outstanding asynchronous image generation requests. The generated image is not retained. Clients should retain the image if they wish it to persist after the completion handler returns.
     */
    generateCGImagesAsynchronouslyForTimes$completionHandler$(requestedTimes: _NSArray, handler: (arg0: CMTime, arg1: NobjcObject, arg2: CMTime, arg3: AVAssetImageGeneratorResult, arg4: _NSError) => void): void;
    /**
     * Returns a CGImageRef for an asset at or near the specified time. A CMTime, specifying the asset time at which an image is requested. A block that will be called when the image request is complete. The client will receive exactly one handler callback for requestedTime. Changes to generator properties (snap behavior, maximum size, etc...) will not affect outstanding asynchronous image generation requests. The generated image is not retained. Clients should retain the image if they wish it to persist after the completion handler returns. If image generation succeeds, the `image` parameter to the completion handler will be non-NULL and the `error` parameter will be nil. If image generation fails or was cancelled, the `image` parameter will be NULL and the `error` parameter will describe what went wrong. For cancelled images, the returned error will be AVErrorOperationCancelled.
     */
    generateCGImageAsynchronouslyForTime$completionHandler$(requestedTime: CMTime, handler: ((image: NobjcObject, actualTime: CMTime, error: _NSError) => void) | null): void;
    /**
     * Cancels all outstanding image generation requests. Calls the handler block with AVAssetImageGeneratorCancelled for each image time in every previous invocation of -generateCGImagesAsynchronouslyForTimes:completionHandler: for which images have not yet been supplied.
     */
    cancelAllCGImageGeneration(): void;
    /**
     * Indicates the instance of AVAsset with which the AVAssetImageGenerator was initialized
     */
    asset(): _AVAsset;
    /**
     * Specifies whether or not to apply the track's preferredTransform (see -[AVAssetTrack preferredTransform]) when extracting an image from the asset. Default is NO. Only rotation by 90, 180, or 270 degrees is supported.
     */
    appliesPreferredTrackTransform(): boolean;
    setAppliesPreferredTrackTransform$(value: boolean): void;
    /**
     * Specifies the maximum dimensions for generated image. Default (CGSizeZero) is the asset's unscaled dimensions. AVAssetImageGenerator will scale images such that they fit within the defined bounding box. Images will never be scaled up. The aspect ratio of the scaled image will be defined by the apertureMode property.
     */
    maximumSize(): CGSize;
    setMaximumSize$(value: CGSize): void;
    /**
     * Specifies the aperture mode for the generated image. Default is AVAssetImageGeneratorApertureModeCleanAperture.
     */
    apertureMode(): AVAssetImageGeneratorApertureMode | null;
    setApertureMode$(value: AVAssetImageGeneratorApertureMode | null): void;
    /**
     * Configures the video dynamic range for the output CGImage Default is AVAssetImageGeneratorDynamicRangePolicyForceSDR
     */
    dynamicRangePolicy(): AVAssetImageGeneratorDynamicRangePolicy;
    setDynamicRangePolicy$(value: AVAssetImageGeneratorDynamicRangePolicy): void;
    /**
     * Specifies the video composition to use when extracting images from assets with multiple video tracks. If no videoComposition is specified, only the first enabled video track will be used. If a videoComposition is specified, the value of appliesPreferredTrackTransform is ignored. This property throws an exception if a video composition is set with any of the following property values: - "renderScale" is not equal to one - "renderSize" width or height is less than zero - "frameDuration" is invalid or less than or equal to zero - "sourceTrackIDForFrameTiming" is less than zero - "outputBufferDescription" is non-nil
     */
    videoComposition(): _AVVideoComposition | null;
    setVideoComposition$(value: _AVVideoComposition | null): void;
    /** Indicates the custom video compositor instance used, if any */
    customVideoCompositor(): _AVVideoCompositing;
    /**
     * The actual time of the generated images will be within the range [requestedTime-toleranceBefore, requestedTime+toleranceAfter] and may differ from the requested time for efficiency. Pass kCMTimeZero for both toleranceBefore and toleranceAfter to request frame-accurate image generation; this may incur additional decoding delay. Default is kCMTimePositiveInfinity.
     */
    requestedTimeToleranceBefore(): CMTime;
    setRequestedTimeToleranceBefore$(value: CMTime): void;
    requestedTimeToleranceAfter(): CMTime;
    setRequestedTimeToleranceAfter$(value: CMTime): void;
}
