import { FC } from 'react'; type TargetStatus = 'connected' | 'disconnected' | 'unknown'; type TargetKind = 'DIRECT' | 'SSH' | 'RDP' | 'VNC'; export interface TargetCardTarget { id: string; type: TargetKind; name: string; label: string | null; host: string | null; port: number | null; username: string | null; status: TargetStatus; connectionId: string | null; tags: string[]; metadata: Record | null; createdAt: string; agents: Array<{ id: string; name: string; version: string; isActive: boolean; }>; } export interface TargetCardProps { target: TargetCardTarget; onTest?: (id: string) => void; onTerminal?: (id: string) => void; /** * Called when the card body itself is clicked (anywhere outside the * inline action buttons). Used to drill into the target detail page. * Falls back to `onTerminal` when omitted to preserve existing behaviour. */ onOpenDetail?: (id: string) => void; onInstallAgent?: (target: TargetCardTarget) => void; onUninstallAgent?: (target: TargetCardTarget) => void; onDelete?: (id: string) => void; onEdit?: (target: TargetCardTarget) => void; selected?: boolean; onToggleSelect?: () => void; highlighted?: boolean; /** * When true, the parent is mid-`startTerminal` for this target. Renders * a spinner-and-text status line at the bottom of the card and disables * the "Open Terminal" menu item so a double-click can't fire two mutations. * `startTerminal` shells into the remote box and spawns ttyd — routinely * 3-8s — and without this hint users think the click did nothing. */ isStartingTerminal?: boolean; } export declare const TargetCard: FC; export {};