/** * Prints usage information for the service subcommand. */ export declare function printServiceUsage(): void; /** * Handles the `service install` command. Generates and installs a service file for the current platform, then starts the service. * @param force - If true, reinstall even if already installed. * @returns Exit code (0 for success, 1 for error). */ export declare function handleInstall(force: boolean): Promise; /** * Handles the `service uninstall` command. Stops and removes the service. * @returns Exit code (0 for success, 1 for error). */ export declare function handleUninstall(): Promise; /** * Handles the `service start` command. Starts the service if it is installed but not running. If the service file contains stale paths (e.g., after a Homebrew * upgrade), they are fixed automatically before starting. * @returns Exit code (0 for success, 1 for error). */ export declare function handleStart(): Promise; /** * Handles the `service stop` command. Always attempts to stop the service regardless of whether it appears to be running, ensuring that loaded-but-not-running * state (common on launchd after a crash) is properly cleared. * @returns Exit code (0 for success, 1 for error). */ export declare function handleStop(): Promise; /** * Handles the `service restart` command. Stops the service, then compares paths and regenerates the service file if needed before starting. * @returns Exit code (0 for success, 1 for error). */ export declare function handleRestart(): Promise; /** * Handles the `service status` command. Shows the current service installation and running status. * @returns Exit code (0 for success). */ export declare function handleStatus(): Promise; /** * Main handler for the `service` subcommand. Parses arguments and delegates to the appropriate handler. * @param args - Arguments after 'service' (e.g., ['install', '--force']). * @returns Exit code (0 for success, 1 for error). */ export declare function handleServiceCommand(args: string[]): Promise;