import { A as AbstractFormatter } from '../abstract-formatter-Dvp6Dh6e.js';

/**
 * Generic Base64 formatter
 */
declare class Base64 extends AbstractFormatter {
    static readonly BASE64_VARIANT_ORIGINAL = 1;
    static readonly BASE64_VARIANT_ORIGINAL_NO_PADDING = 3;
    static readonly BASE64_VARIANT_URLSAFE = 5;
    static readonly BASE64_VARIANT_URLSAFE_NO_PADDING = 7;
    protected variant: number;
    protected strict: boolean;
    /**
     * @param variant Compatible with BASE64_VARIANT_*
     * @param strict Whether to throw exception on decoding errors
     * @throws Error
     */
    constructor(variant?: number, strict?: boolean);
    /**
     * Encodes a raw binary string with base64
     * @param value
     * @return string
     * @throws Error
     */
    format(value: string): string;
    /**
     * Decodes a base64-encoded string into raw binary
     * @param value
     * @return string
     * @throws Error When strict mode is enabled, an exception is thrown in case of unrecognized character
     */
    parse(value: string): Buffer;
}

export { AbstractFormatter, Base64 };
