/** * /api/nodes — list managed cadre nodes (orchestrator handles), look up one * node's details, and tail its log. Read-only: every node's lifecycle belongs to * `/api/hosted-nodes`, whose supervisor would undo at once a stop issued * anywhere else. A handle's `partyId` is the placeholder an unclaimed node was * started with until its first respawn after the claim; the hosted-node record * carries the real party. */ import type { FastifyInstance } from 'fastify'; import type { HostProcessOrchestrator } from '../../orchestrator/index.js'; export interface NodesRoutesOptions { orchestrator: HostProcessOrchestrator; } export declare function registerNodesRoutes(app: FastifyInstance, opts: NodesRoutesOptions): void; /** * Read the last `n` lines from a log file by walking the tail in chunks. * Returns [] for a missing file. */ export declare function tailLogFile(path: string, n: number): string[];