interface DaemonStatus {
    installed: boolean;
    running: boolean;
    pid: number | null;
    port: number;
    unitPath: string | null;
    logPaths: {
        out: string;
        err: string;
    } | null;
    lastError?: string;
}
export declare function rotateDaemonLogs(): {
    rotated: string[];
};
export declare function daemonInstall(): Promise<void>;
export declare function daemonUninstall(): Promise<void>;
export declare function daemonStatus(): Promise<DaemonStatus>;
/**
 * Tail the last N lines of the daemon log for `muassis daemon logs`.
 */
export declare function tailDaemonLogs(lines?: number): {
    out: string;
    err: string;
};
/**
 * Sanity probe — when daemon claims to be running, can we actually reach the
 * gateway on the configured port? Used by `muassis daemon status`.
 */
export declare function probeGateway(port: number): Promise<{
    healthy: boolean;
    latencyMs: number;
    status?: number;
}>;
export {};
//# sourceMappingURL=daemon.d.ts.map