multiformats
Version:
Interface for multihash, multicodec, multibase and CID
30 lines • 961 B
TypeScript
declare function _default(b64: {
decode: (text: string) => Uint8Array;
encode: (bytes: Uint8Array) => string;
__browser: boolean;
}): {
b64: {
decode: (text: string) => Uint8Array;
encode: (bytes: Uint8Array) => string;
__browser: boolean;
};
__browser: boolean;
base64: import("./base.js").Codec<"base64", "m">;
base64pad: import("./base.js").Codec<"base64pad", "M">;
base64url: import("./base.js").Codec<"base64url", "u">;
base64urlpad: import("./base.js").Codec<"base64urlpad", "U">;
};
export default _default;
/**
* The alphabet is only used to know:
* 1. If padding is enabled (must contain '=')
* 2. If the output must be url-safe (must contain '-' and '_')
* 3. If the input of the output function is valid
* The alphabets from RFC 4648 are always used.
*/
export type Settings = {
padding: boolean;
url: boolean;
alphabet: string;
};
//# sourceMappingURL=base64.d.ts.map