duoyun-ui
Version:
A lightweight desktop UI component library, implemented using Gem
11 lines • 710 B
TypeScript
export declare function b64ToUtf8(str: string): string;
export declare function base64ToArrayBuffer(str: string): ArrayBufferLike;
/**Converted string to Base64, `isSafe` indicates URL safe */
export declare function utf8ToB64(str: string, isSafe?: boolean): string;
export declare function arrayBufferToBase64(arrayBuffer: ArrayBufferLike, isSafe?: boolean): string;
/**Must be async */
export declare function hash(strOrAb: string | ArrayBuffer, options?: 'string'): Promise<string>;
export declare function hash(strOrAb: string | ArrayBuffer, output: 'arrayBuffer'): Promise<ArrayBuffer>;
/**Simple hash, output int */
export declare function fnv1a(str: string): number;
//# sourceMappingURL=encode.d.ts.map