import type { _NSError } from "../Foundation/NSError.js";
import type { _NSObject } from "../Foundation/NSObject.js";
import type { _NSString } from "../Foundation/NSString.js";
import type { _NSURL } from "../Foundation/NSURL.js";
import type { _QLThumbnailGenerationRequest } from "./QLThumbnailGenerationRequest.js";
import type { _QLThumbnailRepresentation } from "./QLThumbnailRepresentation.js";
import type { _UTType } from "../UniformTypeIdentifiers/UTType.js";
import type { QLThumbnailRepresentationType } from "./QLThumbnailRepresentationType.js";
export declare class _QLThumbnailGenerator extends _NSObject {
    static alloc(): _QLThumbnailGenerator;
    static new(): _QLThumbnailGenerator;
    init(): _QLThumbnailGenerator;
    static sharedGenerator(): _QLThumbnailGenerator;
    /**
     * Always called when the thumbnail generation is over. The thumbnail passed to this handler is the most representative version of the thumbnail that was successfully generated (if any). If set, the error contains information about the issue that occurred while trying to generate the thumbnail. QLThumbnail error codes can be found in <QuickLookThumbnailing /QLThumbnailErrors.h>.
     */
    generateBestRepresentationForRequest$completionHandler$(request: _QLThumbnailGenerationRequest, completionHandler: ((thumbnail: _QLThumbnailRepresentation, error: _NSError) => void) | null): void;
    /**
     * Called for the successive requested representations of a thumbnail. If a representation was not successfully generated, this may be called with a nil representation. If a requested more representative version was successfully generated before a less representative one, this handler will be called only for the more representative version, skipping the less representative one. This handler is guaranteed to be called at least once, for the requested most representative version, whether a representation could be successfully generated or not. If set, the error contains information about the issue that occurred while trying to generate the representation of the given type. QLThumbnail error codes can be found in <QuickLookThumbnailing /QLThumbnailErrors.h>.
     */
    generateRepresentationsForRequest$updateHandler$(request: _QLThumbnailGenerationRequest, updateHandler: ((thumbnail: _QLThumbnailRepresentation, type: QLThumbnailRepresentationType, error: _NSError) => void) | null): void;
    /**
     * Cancels the given QLThumbnailGenerationRequest. The request that should be cancelled.
     */
    cancelRequest$(request: _QLThumbnailGenerationRequest): void;
    /**
     * Saves a thumbnail for the request on disk at fileURL. The file saved at fileURL has to be deleted when it is not used anymore. This is primarily intended for file provider extensions which need to upload thumbnails and have a small memory limit. An image content type to save the thumbnail as, supported by CGImageDestination, such as UTTypePNG or UTTypeJPEG Always called when the thumbnail generation is over. Will contain an error if the thumbnail could not be successfully saved to disk at fileURL.
     */
    saveBestRepresentationForRequest$toFileAtURL$asContentType$completionHandler$(request: _QLThumbnailGenerationRequest, fileURL: _NSURL, contentType: _UTType, completionHandler: ((error: _NSError) => void) | null): void;
    /**
     * Saves a thumbnail for the request on disk at fileURL. The file saved at fileURL has to be deleted when it is not used anymore. This is primarily intended for file provider extensions which need to upload thumbnails and have a small memory limit. An image content type to save the thumbnail as, supported by CGImageDestination, such as kUTTypePNG or kUTTypeJPEG Always called when the thumbnail generation is over. Will contain an error if the thumbnail could not be successfully saved to disk at fileURL.
     * @deprecated saveBestRepresentationForRequest:toFileAtURL:asContentType:completionHandler:
     */
    saveBestRepresentationForRequest$toFileAtURL$withContentType$completionHandler$(request: _QLThumbnailGenerationRequest, fileURL: _NSURL, contentType: _NSString, completionHandler: ((error: _NSError) => void) | null): void;
}
