export interface BootstrapNode { host: string; port: number; pk: string; } export interface ExpressNode extends BootstrapNode { tls?: boolean; } export interface NodeConfig { bootstrapNodes: BootstrapNode[]; expressNodes?: ExpressNode[]; nickname?: string; statusMessage?: string; autoAccept: boolean; } export declare function loadNodeConfig(configDir: string): NodeConfig; /** Persist the auto-accept switch into config.yaml, preserving everything * else in the file. Without this the runtime toggle lasted until the next * restart and then silently reverted — worse than no switch. */ export declare function saveAutoAccept(configDir: string, enabled: boolean): void;