/** * LaunchDaemon Management * * Creates and manages macOS LaunchDaemon for the broker. */ /** * Generate the broker LaunchDaemon plist (with UserConfig) */ export declare function generateBrokerPlist(config: import('@agenshield/ipc').UserConfig, options?: { brokerPath?: string; configPath?: string; socketPath?: string; nodeBinPath?: string; }): string; /** * Generate the broker LaunchDaemon plist (legacy - no UserConfig) */ export declare function generateBrokerPlistLegacy(options?: { brokerBinary?: string; configPath?: string; socketPath?: string; }): string; export interface DaemonResult { success: boolean; message: string; plistPath?: string; loaded?: boolean; error?: Error; } /** * Install the LaunchDaemon from plist content */ export declare function installLaunchDaemon(plistContent: string): Promise; /** * Install the LaunchDaemon with options (legacy) */ export declare function installLaunchDaemon(options?: { brokerBinary?: string; configPath?: string; socketPath?: string; }): Promise; /** * Load the LaunchDaemon */ export declare function loadLaunchDaemon(): Promise; /** * Unload the LaunchDaemon */ export declare function unloadLaunchDaemon(): Promise; /** * Uninstall the LaunchDaemon */ export declare function uninstallLaunchDaemon(): Promise; /** * Check if LaunchDaemon is running */ export declare function isDaemonRunning(): Promise; /** * Get daemon status */ export declare function getDaemonStatus(): Promise<{ installed: boolean; running: boolean; pid?: number; lastExitStatus?: number; }>; /** * Restart the daemon */ export declare function restartDaemon(): Promise; /** * Fix socket permissions after broker starts * This ensures the daemon user can access the broker socket */ export declare function fixSocketPermissions(config?: import('@agenshield/ipc').UserConfig): Promise; //# sourceMappingURL=launchdaemon.d.ts.map