export type ServicePlatform = 'systemd' | 'sysvinit' | 'synology' | 'launchd' | 'windows'; export interface ServiceInstallOptions { system?: boolean; execPath?: string; dryRun?: boolean; unitOnly?: boolean; platform?: ServicePlatform | 'auto'; } export interface ServiceInstallResult { ok: true; platform: ServicePlatform; unitPath: string; mode: 'user' | 'system'; enabled: boolean; started: boolean; notes: string[]; } export interface ServiceUninstallOptions { system?: boolean; platform?: ServicePlatform | 'auto'; } export declare function systemdUnit(opts: { execPath: string; nodeBin: string; user: string; isSystem: boolean; }): string; export declare function windowsElevatedTaskCreateScript(opts: { schtasksPath: string; taskName: string; xmlPath: string; }): string; export declare function windowsHiddenLauncher(opts: { execPath: string; nodeBin: string; }): string; export declare function windowsTaskXml(opts: { launcherPath: string; user: string; isSystem: boolean; wscriptPath?: string; }): string; export declare function installService(options?: ServiceInstallOptions): Promise; export declare function uninstallService(options?: ServiceUninstallOptions): Promise;