import { type Exec } from '../exec.js'; import type { LivenessState, SupervisorBackend } from './types.js'; export declare const UNIT_TEMPLATE = "ours-fleet-agent@.service"; /** * Actionable hint when systemctl cannot reach the user bus. After the cli.ts * XDG_RUNTIME_DIR fallback this branch stays reachable only when * /run/user/ itself is missing — i.e. linger is off and no session is * active — so pointing at linger is the correct first hint. (#9) */ export declare const busHint: (stderr: string) => string; export declare const unitFor: (name: string) => string; /** * systemd's own ActiveState vocabulary, classified. `activating` covers * `auto-restart` — the unit is mid-restart, not stopped, so its context stands. * `deactivating`/`reloading` still have a process. Only `inactive` and `failed` * are definite stops. Anything systemd did not report is `unknown`. */ export declare function classifyActiveState(activeState: string): LivenessState; export declare function makeSystemdBackend(exec?: Exec): SupervisorBackend;