import type { ServiceSpec, SupervisorOptions } from './supervisor.js'; export interface SystemdStatus { active: boolean; enabled: boolean; installed: boolean; loaded: boolean; manager: 'systemd'; pid?: number; running: boolean; serviceName: string; unitPath: string; } interface SystemdRuntime { active: boolean; enabled: boolean; loaded: boolean; pid?: number; } export declare function systemdSupported(): boolean; export declare function systemdServiceInstalled(spec: ServiceSpec): Promise; export declare function installSystemdService(spec: ServiceSpec, options: SupervisorOptions): Promise; export declare function uninstallSystemdService(spec: ServiceSpec): Promise; export declare function startSystemdService(spec: ServiceSpec): Promise; export declare function stopSystemdService(spec: ServiceSpec): Promise; export declare function systemdServiceStatus(spec: ServiceSpec): Promise; type SystemdAction = 'daemon-reload' | 'disable' | 'enable' | 'restart' | 'start' | 'stop'; export declare function systemdInstallActions(): SystemdAction[]; export declare function systemdStartActions(status: Pick & Pick): SystemdAction[]; export declare function systemdStopActions(status: Pick): SystemdAction[]; export declare function systemdUninstallActions(status: Pick): SystemdAction[]; export declare function systemdActionInvocation(action: SystemdAction, spec: ServiceSpec): { args: string[]; options: { allowFailure?: boolean; }; }; export declare function buildSystemdUnit(spec: ServiceSpec, options: SupervisorOptions): string; export declare function systemdServiceName(spec: ServiceSpec): string; export declare function systemdUnitPath(spec: ServiceSpec): string; export declare function parseSystemdRuntime(result: { status: number | null; stdout: string; }): SystemdRuntime; export {}; //# sourceMappingURL=systemd.d.ts.map