export type NodeType = 'bootstrap' | 'regular'; export type NetworkType = 'local' | 'tailscale' | 'public'; export interface SwarmConfig { version: number; nodeType: NodeType; networkType: NetworkType; swarmKey: string | null; basePort: number; apiPort: number; gatewayPort: number; bootstrapMultiaddr: string | null; bootstrapPeers: string[]; nodeId: string | null; lastStarted: string | null; tailscaleIP: string | null; kuboPath: string | null; ipfsPath: string | null; autoStart: boolean; encryption: { enabled: boolean; algorithm: string; }; } /** * Load configuration from disk. Creates default if missing. */ export declare function loadConfig(): SwarmConfig; /** * Save configuration to disk with restrictive permissions. */ export declare function saveConfig(config: SwarmConfig): void; /** * Update specific fields in the configuration. */ export declare function updateConfig(updates: Partial): SwarmConfig; /** * Validate and normalize port configuration. */ export declare function validatePorts(config: SwarmConfig): void; //# sourceMappingURL=config.d.ts.map