import { AuthenticateInterface } from "./Requests/AuthenticateInterface"; import { AutologinInterface } from "./Requests/AutologinInterface"; import { ChangePasswordInterface } from "./Requests/ChangePasswordInterface"; import { DeleteUserInterface } from "./Requests/DeleteUserInterface"; import { RefreshTokenInterface } from "./Requests/RefreshTokenInterface"; import { RegisterUserInterface } from "./Requests/RegisterUserInterface"; import { ResetPasswordInterface } from "./Requests/ResetPasswordInterface"; import { RevokeTokenInterface } from "./Requests/RevokeTokenInterface"; import { ValidateTokenInterface } from "./Requests/ValidateTokenInterface"; export declare class SimpleJwtLogin { private host; private namespace; private authCodeKey; private callback; private sync; /** * @param host WordPress instance domain * @param namespace Simple-JWT-Login route namespace. Optional. Default to /simple-jwt-login/v1 * @param authCodeKey Simple-JWT-Login AUTH_CODE_KEY. Optional. Default to AUTH_KEY */ constructor(host: string, namespace?: string, authCodeKey?: string); withCallback(callback: any): void; /** * @param params Request parameters * @param authCode AuthCode value. Optional */ autologin(params: AutologinInterface, authCode?: string): void; /** * @param params Request parameters * @param authCode AuthCode value. Optional */ deleteUser(params: DeleteUserInterface, authCode?: string): string | undefined; /** * @param params Request parameters * @param authCode AuthCode value. Optional */ registerUser(params: RegisterUserInterface, authCode?: string): string | undefined; /** * @param params Request parameters * @param authCode AuthCode value. Optional */ resetPassword(params: ResetPasswordInterface, authCode?: string): string | undefined; /** * @param params Request parameters * @param authCode AuthCode value. Optional */ changePassword(params: ChangePasswordInterface, authCode?: string): string | undefined; /** * @param params Request parameters * @param authCode AuthCode value. Optional */ authenticate(params: AuthenticateInterface, authCode?: string): string | undefined; /** * @param params Request parameters * @param authCode AuthCode value. Optional */ refreshToken(params: RefreshTokenInterface, authCode?: string): string | undefined; /** * @param params Request parameters * @param authCode AuthCode value. Optional */ validateToken(params: ValidateTokenInterface, authCode?: string): string | undefined; /** * @param params Request parameters * @param authCode AuthCode value. Optional */ revokeToken(params: RevokeTokenInterface, authCode?: string): string | undefined; private buildUrl; private queryData; /** * @param method Request method. One of: GET, POST, PUT, PATCH, DELETE * @param endpoint The endpoint that will be called * @param params Request parameters * @private */ private call; }