import { type TailscaleInfo } from "./tailscale.js";
export interface DaemonStatusPayload {
    serverId: string | null;
    localDaemon: string;
    connectedDaemon: string;
    home: string;
    listen: string;
    relay: string;
    hostname: string | null;
    pid: number | null;
    startedAt: string | null;
    logPath: string;
    daemonVersion: string | null;
    runningAgents: number | null;
    idleAgents: number | null;
    note?: string;
}
export interface ManagerStatusResponse {
    daemon: DaemonStatusPayload | null;
    health: {
        ok: boolean;
        statusCode: number | null;
        url: string;
    };
    tailscale: TailscaleInfo;
    configListen: string | null;
    webUiUrl: string | null;
    error: string | null;
}
export declare function getManagerStatus(): Promise<ManagerStatusResponse>;
export declare function startDaemon(): Promise<{
    message: string;
}>;
export declare function stopDaemon(): Promise<{
    message: string;
}>;
export declare function restartDaemon(): Promise<{
    message: string;
}>;
export declare function readDaemonLogs(tailLines?: number): {
    logPath: string;
    contents: string;
};
