// What every tunnel core gives the admin (cores/index.ts holds the registry), // what a core's settings card gets from the Server page, and that card's head. import type { ClientConfig, Server, Status } from '../../shared/types'; import { E } from '../e'; /** What the Server page hands a core's settings card. */ export interface CoreCtx { st: Status; /** server_update with these values, then refresh. */ save: (values: Record, ok?: string) => Promise; refresh: () => Promise; } /** A tunnel core (AmneziaWG today): its name and the pieces of the admin that differ per core. */ export interface Core { id: string; /** "AmneziaWG": the server section, the address bar, the settings card. */ label: string; /** Server →