import type { _NSError } from "../Foundation/NSError.js";
import type { _NSString } from "../Foundation/NSString.js";
import type { _NSURL } from "../Foundation/NSURL.js";
import type { _QLFilePreviewRequest } from "./QLFilePreviewRequest.js";
import type { _QLPreviewReply } from "./QLPreviewReply.js";
export interface _QLPreviewingController {
    /**
     * Prepares the preview for a file by using the data from Spotlight’s searchable item. The operating system calls this method only once from the main thread before it presents the previewing controller. To avoid blocking the main thread, don’t perform long-running or resource-intensive work. - Parameters: - identifier: The identifier of the searchable item. - queryString: A search string to associate with the searchable item. - handler: A completion handler that notifies the platform that a preview is available. The operating system shows a loading spinner, so call the handler as soon as possible. You can call the completion handler asynchronously after returning from the callback.
     */
    preparePreviewOfSearchableItemWithIdentifier$queryString$completionHandler$?(identifier: _NSString, queryString: _NSString | null, handler: ((arg0: _NSError) => void) | null): void;
    /**
     * Prepares the preview of a file at the specified file’s URL. The operating system calls this method only once from the main thread before it presents the previewing controller. To avoid blocking the main thread, don’t perform long-running or resource-intensive work. When preparing and displaying the view controller, avoid holding open a file descriptors while the user is previewing the file. - Parameters: - url: The URL of the file to preview. - handler: A completion handler that notifies the platform that a preview is available. The operating system shows a loading spinner, so call the handler as soon as possible. You can call the completion handler asynchronously after returning from the callback.
     */
    preparePreviewOfFileAtURL$completionHandler$?(url: _NSURL, handler: ((arg0: _NSError) => void) | null): void;
    /**
     * Prepares the preview of a file identified within a file preview request. - Parameters: - request: The file preview request that identifies the content to preview. - handler: The closure to call with a <doc ://com.apple.documentation/documentation/quicklook/qlpreviewreply> for the system to display as the preview.
     */
    providePreviewForFileRequest$completionHandler$?(request: _QLFilePreviewRequest, handler: ((reply: _QLPreviewReply, error: _NSError) => void) | null): void;
}
