UNPKG

827 BTypeScriptView Raw
1export declare class APIUtils {
2 static getRawTypeName(obj: any): any;
3 static convertToType(value: any, convertToType: string): any;
4 static toBoolean(input: any): any;
5 static coalesce(...inputArgs: any[]): any;
6 static getFunctionParamNames(fn: Function): string[];
7 private static _IV_LENGTH;
8 private static _CRYPTO_ALG;
9 private static _HASH_ALG;
10 static encrypt(text: string, password?: string): string;
11 static decrypt(text: string, password?: string): string;
12 static slugify(text: string): string;
13 static hashString(text: string): string;
14 static hashMD5(text: string): string;
15 /**
16 * Creates an expiration date in seconds since UNIX epoch from now.
17 * @param expirationInSeconds
18 */
19 static createExpirationInSeconds(expirationInSeconds: number): number;
20}