v0.12.1
This commit is contained in:
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
export default Base62;
|
||||
/**
|
||||
* Base62 编码解码类
|
||||
*/
|
||||
declare class Base62 {
|
||||
/**
|
||||
* @param {string} alphabet 62 位编码字母表
|
||||
*/
|
||||
constructor(alphabet: string);
|
||||
/** @type {string[]} */
|
||||
encodeTable: string[];
|
||||
/** @type {Uint8Array} */
|
||||
decodeMap: Uint8Array;
|
||||
/**
|
||||
* 将字符串编码为 Base62 字符串
|
||||
* @param {string} src
|
||||
* @returns {string}
|
||||
*/
|
||||
encode(src: string): string;
|
||||
/**
|
||||
* 将 Base62 字符串解码为原始字符串
|
||||
* @param {string} src
|
||||
* @returns {string}
|
||||
*/
|
||||
decode(src: string): string;
|
||||
}
|
||||
Reference in New Issue
Block a user