import { AgentVisibilitySubject } from '../../utils/agentVisibility'; /** * Shared UI types + small helpers for the agent-mesh graph. * * These narrow the generated fragment shapes into the plain props the mesh * graph components consume, so the components don't depend on the exact * generated type names. */ export interface MeshAgentUi { id: string; name: string; hostname: string; platform: string; version: string; isActive: boolean; ownerUserId?: string | null; /** BOFF-6394 — `PRIVATE` nodes belong to one member; `WORKSPACE` to everyone. */ visibility?: 'PRIVATE' | 'WORKSPACE' | null; targetId: string; tunnelStatus?: string | null; target?: { id: string; name: string; type: string; host?: string | null; } | null; } export interface MeshLinkUi { id: string; workspaceId: string; status: string; permissions: string[]; scopes: string[]; label?: string | null; description?: string | null; createdAt: string; updatedAt: string; sourceAgent: { id: string; name: string; }; destinationAgent: { id: string; name: string; hostname: string; target?: { id: string; name: string; type: string; host?: string | null; } | null; }; } /** A mesh link is "live" (animated edge) when active/connected. */ export declare function isMeshLinkLive(status: string): boolean; /** * Is this mesh node a workspace-shared agent (vs private to one member)? * * Delegates to the one visibility rule (BOFF-6394) rather than re-deriving it * from `ownerUserId`, which mislabels a shared-but-owned agent as personal. */ export declare function isSharedAgent(agent: AgentVisibilitySubject): boolean;