import { Credentials } from "./interfaces/api/api"; import { Context as ApiContext } from "./interfaces/api/context"; import * as io from "./interfaces/http-io"; export interface LoginOptions { io: io.HttpIo; credentials: Credentials; verbose?: boolean; } /** * Builds an Api context trough a new authentication. * This involves the requests: * GET to scrap the LoginKeys (pie & etm) * POST to get the SkypeToken from the credentials and LoginKeys * GET to get the userId * POST to get RegistrationToken from the SkypeToken * Eventually, follow a redirection to use the assigned host * POST to gain access to resources with the RegistrationToken * * @param options * @returns A new API context with the tokens for the provided user */ export declare function login(options: LoginOptions): Promise;