UNPKG

weverse

Version:
9 lines (8 loc) 783 B
import { WeverseLoginPayloadInterface, WeversePasswordAuthorization, WeverseAuthorization, WeverseOauthCredentials, WeverseRefreshPayload } from '../types'; export declare function readKey(): string | null; export declare function encryptPassword(pass: string, pubKey: string | null): string | null; export declare const validateStatus: (status: number) => boolean; export declare function createLoginPayload(credentials: WeversePasswordAuthorization): WeverseLoginPayloadInterface; export declare function createRefreshPayload(credentials: WeverseOauthCredentials): WeverseRefreshPayload; export declare function isWeversePasswordAuthorization(val: WeverseAuthorization): val is WeversePasswordAuthorization; export declare function AssignType<T extends object>(): new (t: T) => T;