import { Server, ServerStatus } from '../../../domain/index.js'; /** * Server Repository Port - Outbound Port * Interface for server data access */ export interface IServerRepository { /** * Get all servers */ findAll(): Promise; /** * Find server by name */ findByName(name: string): Promise; /** * Check if server exists */ exists(name: string): Promise; /** * Get server status */ getStatus(name: string): Promise; /** * Get server configuration from config.env */ getConfig(name: string): Promise; /** * List server names */ listNames(): Promise; /** * Get running servers */ findRunning(): Promise; /** * Get stopped servers */ findStopped(): Promise; } /** * Server configuration data from config.env */ export interface ServerConfigData { name: string; type: string; version: string; memory?: string; rconPassword?: string; seed?: string; /** * World set in config.env (LEVEL > WORLD_NAME), undefined when neither is * set. The effective world falls back to 'world': resolveWorldName(). */ worldName?: string; worldUrl?: string; customEnv?: Record; } //# sourceMappingURL=IServerRepository.d.ts.map