export declare class Digest {
    private readonly _textEncoder;
    /**
     * Computes the hash of a given text input using the specified algorithm.
     * @param input - The text input to hash.
     * @param algorithm - The hash algorithm to use.
     * @returns A promise that resolves to the hash as an `ArrayBuffer`.
     */
    text(input: string, algorithm: AlgorithmIdentifier): Promise<ArrayBuffer>;
    /**
     * Computes the hash of a given data input using the specified algorithm.
     * @param input - The data input to hash.
     * @param algorithm - The hash algorithm to use.
     * @returns A promise that resolves to the hash as an `ArrayBuffer`.
     */
    data(input: BufferSource, algorithm: AlgorithmIdentifier): Promise<ArrayBuffer>;
    /**
     * Converts an `ArrayBuffer` to a Base64 encoded string.
     * @param input - The `ArrayBuffer` to convert.
     * @returns The Base64 encoded string.
     */
    toBase64(input: ArrayBufferLike | Uint8Array): string;
    /**
     * Computes the hash of a given `Blob` input using the specified algorithm.
     * @param input - The `Blob` input to hash.
     * @param algorithm - The hash algorithm to use.
     * @returns A promise that resolves to the hash as an `ArrayBuffer`.
     */
    blob(input: Blob, algorithm: AlgorithmIdentifier): Promise<ArrayBuffer>;
}
/**
 * An instance of the {@link Digest} class.
 */
export declare const digest: Digest;
//# sourceMappingURL=digest.d.ts.map