export function buildServer(routes: any): Promise;