import type { RouteContext } from '../router.js'; /** /restart [-y] — graceful service restart with pre-flight + ack + * completion message after the new daemon comes up. */ export declare function handleRestartCommand(args: string, ctx: RouteContext): Promise; /** /stop — graceful shutdown. Routes through systemctl when systemd * manages the unit so systemd's lifecycle accounting stays consistent * (matters when the unit has `Restart=always` — a bare SIGTERM-self * would cleanly exit and systemd would just restart it, defeating * the /stop). On non-systemd installs, SIGTERMs self after a 300ms * flush. */ export declare function handleStopCommand(args: string, ctx: RouteContext): Promise; /** /status — open to everyone. Surfaces uptime + default agent + * registered messengers. No secrets. */ export declare function handleStatusCommand(_args: string, ctx: RouteContext): Promise; //# sourceMappingURL=service.d.ts.map