@hazae41/base64
Version:
Base64 adapter for WebAssembly and JS implementations
18 lines (15 loc) • 725 B
TypeScript
import * as Scure from '@scure/base';
import { BytesOrCopiable, Copied } from '../../libs/copiable/index.js';
declare function fromBufferOrScure(scure: typeof Scure): {
encodePaddedOrThrow: (bytes: BytesOrCopiable) => string;
decodePaddedOrThrow: (text: string) => Copied;
encodeUnpaddedOrThrow: (bytes: BytesOrCopiable) => string;
decodeUnpaddedOrThrow: (text: string) => Copied;
};
declare function fromScure(scure: typeof Scure): {
encodePaddedOrThrow: (bytes: BytesOrCopiable) => string;
decodePaddedOrThrow: (text: string) => Copied;
encodeUnpaddedOrThrow: (bytes: BytesOrCopiable) => string;
decodeUnpaddedOrThrow: (text: string) => Copied;
};
export { fromBufferOrScure, fromScure };