/** * Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * * @file src/base64.ts * @author lurunze */ /** * URL安全的Base64编码 * 将输入字符串编码为URL安全的Base64格式 * * @param inputStr 输入字符串或对象 * @returns URL安全的Base64编码字符串 */ export declare function urlEncode(inputStr: string | any): string; /** * URL安全的Base64解码 * 将URL安全的Base64字符串解码为原始字符串 * * @param inputStr URL安全的Base64编码字符串 * @returns 解码后的字符串 */ export declare function urlDecode(inputStr: string): string; /** * 标准Base64编码 * * @param inputStr 输入字符串 * @returns Base64编码字符串 */ export declare function encode(inputStr: string): string; /** * 标准Base64解码 * * @param inputStr Base64编码字符串 * @returns 解码后的字符串 */ export declare function decode(inputStr: string): string; declare const Base64: { urlEncode: typeof urlEncode; urlDecode: typeof urlDecode; encode: typeof encode; decode: typeof decode; }; export default Base64; //# sourceMappingURL=base64.d.ts.map