import { Paths } from '../../utils/index.js'; import { Server, ServerStatus } from '../../domain/index.js'; import type { IServerRepository, ServerConfigData } from '../../application/ports/outbound/IServerRepository.js'; import type { IContainerRuntimePort } from '../../application/ports/outbound/IContainerRuntimePort.js'; /** * ServerRepository * Implements IServerRepository for server data access */ export declare class ServerRepository implements IServerRepository { private readonly paths; private readonly serversDir; private readonly runtime; /** * @param runtime Runtime status of the servers (#665). Defaults to the * Docker adapter. */ constructor(paths?: Paths, runtime?: IContainerRuntimePort); /** * Get all servers */ findAll(): Promise; /** * Find server by name */ findByName(name: string): Promise; /** * Check if server exists */ exists(name: string): Promise; /** * Get server status from the runtime port, awaited so request paths never * block on docker (#665). A failed query ('not_found') counts as stopped, as * before; a name no server can have is UNKNOWN. */ 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; } //# sourceMappingURL=ServerRepository.d.ts.map