import type { _NSData } from "./NSData.js";
import type { _NSURLSessionDataTask } from "./NSURLSessionDataTask.js";
export declare class _NSURLSessionUploadTask extends _NSURLSessionDataTask {
    static alloc(): _NSURLSessionUploadTask;
    /**
     * @deprecated Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances
     */
    static new(): _NSURLSessionUploadTask;
    /**
     * @deprecated Please use -[NSURLSession uploadTaskWithStreamedRequest:] or other NSURLSession methods to create instances
     */
    init(): _NSURLSessionUploadTask;
    /**
     * Cancels an upload and calls the completion handler with resume data for later use. resumeData will be nil if the server does not support the latest resumable uploads Internet-Draft from the HTTP Working Group, found at https://datatracker.ietf.org/doc/draft-ietf-httpbis-resumable-upload/ - Parameter completionHandler: The completion handler to call when the upload has been successfully canceled.
     */
    cancelByProducingResumeData$(completionHandler: ((resumeData: _NSData) => void) | null): void;
}
