import type { ServiceSpec, SupervisorOptions } from './supervisor.js'; export interface LaunchdStatus { installed: boolean; label: string; loaded: boolean; manager: 'launchd'; pid?: number; plistPath: string; running: boolean; } export declare function launchdSupported(): boolean; export declare function launchdServiceInstalled(spec: ServiceSpec): Promise; export declare function installLaunchdService(spec: ServiceSpec, options: SupervisorOptions): Promise; export declare function uninstallLaunchdService(spec: ServiceSpec): Promise; export declare function startLaunchdService(spec: ServiceSpec): Promise; export declare function stopLaunchdService(spec: ServiceSpec): Promise; export declare function launchdServiceStatus(spec: ServiceSpec): Promise; type LaunchdAction = 'bootout' | 'bootstrap' | 'kickstart'; export declare function launchdInstallActions(status: Pick): LaunchdAction[]; export declare function launchdStartActions(status: Pick): LaunchdAction[]; export declare function launchdStopActions(status: Pick): LaunchdAction[]; export declare function launchdActionInvocation(action: LaunchdAction, spec: ServiceSpec, plistPath: string): { args: string[]; options: { allowAlreadyLoaded?: boolean; allowFailure?: boolean; }; }; export declare function buildLaunchdPlist(spec: ServiceSpec, options: SupervisorOptions): string; export declare function launchdLabel(spec: ServiceSpec): string; export declare function launchdPlistPath(spec: ServiceSpec): string; export declare function parseLaunchdRuntime(result: { status: number | null; stdout: string; }): { loaded: boolean; pid?: number; }; export {}; //# sourceMappingURL=launchd.d.ts.map