import { ServerObjectConverterNode } from "../../3.1/paths/ServerObjectConverter.node";
export function coalesceServers(existingServers, serversToAdd, context, accessPath) {
    return [
        ...(existingServers ?? []),
        ...(serversToAdd ?? []).map((server, index) => new ServerObjectConverterNode({
            input: server,
            context,
            accessPath,
            pathId: ["servers", `${index}`],
        })),
    ];
}
