import dataPreferences from '@ohos.data.preferences';
import common from '@ohos.app.ability.common';
export default class UPUtil {
    static applicationContext: common.ApplicationContext;
    static getDeviceInfo(): Promise<Record<string, string>>;
    static uuidString(): string;
    static strToInt(k19: string): number;
    static bytesToHexStr(j19: Uint8Array): string;
    static strToHexStr(i19: string): string;
    static rsaEncryptMsg(g19: string, h19: string): string;
    static rsaDecryptMsg(e19: string, f19: string): string;
    static verifySign(b19: string, c19: string, d19: string): Promise<boolean>;
    static getServerUrl(a19: string): string;
    static getApplicationContext(): common.ApplicationContext;
    static configPath(z18?: string): string;
    static writeDataToFile(x18: string, y18: string): void;
    static readDataFromFile(w18: string): string;
    /**
     * 写入数据至首选项
     * @param data  数据内容
     * @param key   存储数据ky
     * @param context  首选项context
     * @returns Promise
     */
    static writeDataToPreferences(t18: string, u18: string, v18: Context): Promise<void>;
    /**
     * 批量写入数据至首选项
     * @param datas 批量数据内容
     * @param key   存储数据ky
     * @param context  首选项context
     * @returns Promise
     */
    static writeDatasToPreferences(r18: Object, s18: Context): Promise<void>;
    /**
     * 从首选项读取数据
     * @param key
     * @param context
     * @returns
     */
    static readDataFromPreferences(p18: string, q18: Context): Promise<dataPreferences.ValueType>;
    /**
     * 从首选项删除数据
     * @param key
     * @param context
     * @returns
     */
    static deleteDataFromPreferences(n18: string, o18: Context): Promise<void>;
    static seType2CarrierType(m18: string): string;
    static toCorrectScheme(l18: string): string;
}
