// Type definitions for @allex/base64
// Project: https://github.com/allex/base64
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export declare function encode(s: string, uriSafe?: boolean): string;
export declare function decode(base64: string): string;
export declare function encodeURI(s: string): string;

export declare function toUtf8(s: string): Buffer;
export declare function fromUtf8(s: string): Buffer;
