import type { NobjcObject } from "objc-js";
import type { _NSArray } from "./NSArray.js";
import type { _NSData } from "./NSData.js";
import type { _NSDictionary } from "./NSDictionary.js";
import type { _NSObject } from "./NSObject.js";
import type { _NSString } from "./NSString.js";
import type { _NSURL } from "./NSURL.js";
import type { NSQualityOfService } from "./NSQualityOfService.js";
import type { NSTaskTerminationReason } from "./NSTaskTerminationReason.js";
export declare class _NSTask extends _NSObject {
    static alloc(): _NSTask;
    static new(): _NSTask;
    static launchedTaskWithExecutableURL$arguments$error$terminationHandler$(url: _NSURL, arguments_: _NSArray, error: NobjcObject | null, terminationHandler: ((arg0: _NSTask) => void) | null): _NSTask | null;
    /** @deprecated launchedTaskWithExecutableURL:arguments:error: */
    static launchedTaskWithLaunchPath$arguments$(path: _NSString, arguments_: _NSArray): _NSTask;
    /**
     * Create an NSTask which can be run at a later time An NSTask can only be run once. Subsequent attempts to run an NSTask will raise. Upon task death a notification will be sent { Name = NSTaskDidTerminateNotification; object = task; }
     */
    init(): _NSTask;
    /** actions */
    launchAndReturnError$(error: NobjcObject | null): boolean;
    /** Not always possible. Sends SIGINT. */
    interrupt(): void;
    /** Not always possible. Sends SIGTERM. */
    terminate(): void;
    suspend(): boolean;
    resume(): boolean;
    waitUntilExit(): void;
    /** @deprecated launchAndReturnError: */
    launch(): void;
    /** these methods can only be set before a launch */
    executableURL(): _NSURL;
    setExecutableURL$(value: _NSURL): void;
    arguments(): _NSArray | null;
    setArguments$(value: _NSArray | null): void;
    /** if not set, use current */
    environment(): _NSDictionary | null;
    setEnvironment$(value: _NSDictionary | null): void;
    currentDirectoryURL(): _NSURL;
    setCurrentDirectoryURL$(value: _NSURL): void;
    launchRequirementData(): _NSData;
    setLaunchRequirementData$(value: _NSData): void;
    /** standard I/O channels; could be either an NSFileHandle or an NSPipe */
    standardInput(): NobjcObject | null;
    setStandardInput$(value: NobjcObject | null): void;
    standardOutput(): NobjcObject | null;
    setStandardOutput$(value: NobjcObject | null): void;
    standardError(): NobjcObject | null;
    setStandardError$(value: NobjcObject | null): void;
    /** status */
    processIdentifier(): number;
    running(): boolean;
    terminationStatus(): number;
    terminationReason(): NSTaskTerminationReason;
    /**
     * A block to be invoked when the process underlying the NSTask terminates. Setting the block to nil is valid, and stops the previous block from being invoked, as long as it hasn't started in any way. The NSTask is passed as the argument to the block so the block does not have to capture, and thus retain, it. The block is copied when set. Only one termination handler block can be set at any time. The execution context in which the block is invoked is undefined. If the NSTask has already finished, the block is executed immediately/soon (not necessarily on the current thread). If a terminationHandler is set on an NSTask, the NSTaskDidTerminateNotification notification is not posted for that task. Also note that -waitUntilExit won't wait until the terminationHandler has been fully executed. You cannot use this property in a concrete subclass of NSTask which hasn't been updated to include an implementation of the storage and use of it.
     */
    terminationHandler(): (arg0: _NSTask) => void;
    setTerminationHandler$(value: (arg0: _NSTask) => void): void;
    /** read-only after the task is launched */
    qualityOfService(): NSQualityOfService;
    setQualityOfService$(value: NSQualityOfService): void;
    /** @deprecated executableURL */
    launchPath(): _NSString;
    setLaunchPath$(value: _NSString): void;
    /**
     * if not set, use current
     * @deprecated currentDirectoryURL
     */
    currentDirectoryPath(): _NSString;
    setCurrentDirectoryPath$(value: _NSString): void;
}
