import { Observable } from 'rxjs'; import { RouteConfig } from '../providers'; import { Account, Membership, Username } from '../models'; import { Accounts } from '../api'; import { ApiHttpClient } from '../client/api.client'; export declare class AccountService { private readonly routes; private readonly http; constructor(routes: RouteConfig, http: ApiHttpClient); authenticate(username: string, password: string): Observable; memberships(query?: Accounts.Query): Observable>; /** * Determine if the username exists on the server. The server returns 404 Not * Found if the username isn't found, so the method catches the error and * returns Username with { existence: false } because the error can become * quite annoying. */ username(username: string): Observable; }