declare type SpongePermutator = (data: Uint8Array) => void; /** Sponge construction option */ export interface SpongeOption { bitsize: number; rate: number; dsbyte: number; permutator: SpongePermutator; } export declare type Message = string | ArrayBuffer; /** Sponge construction */ export declare class Sponge { #private; constructor(option: SpongeOption); /** Applies padding to internal state */ private pad; /** Squeezes internal state */ protected squeeze(length: number): Uint8Array; /** Updates internal state by absorbing */ update(data: Message): this; /** Returns the hash in ArrayBuffer */ digest(): ArrayBuffer; /** Returns the hash in given format */ toString(format?: "hex"): string; } export {};