Meteor.loginWithLDAP() does not exist

I’m still trying to make typ:accounts-ldap works. Documentation is scarce and I’m completely newbie with Meteor…bad mix.

According to documentation I’ve to use Meteor.loginWithLDAP function but if I use the method in my provider:

import { Injectable } from '@angular/core';
import { Meteor } from 'meteor/meteor';

export class LoginService {
   login(username: string, password: string) {
      Meteor.loginWithLDAP(username, password, {
         dn: "uid=" + username + ",ou=people,dc=myldap,dc=es",
         search: "(objectclass=*)"
      }, function (err) {
         if(err) {

I get an Property ‘loginWithLDAP’ does not exist on type 'typeof Meteor error

Guess I need to import something, but all the references I’ve tried were unsuccessful

Any idea?