/** * @license * @preserve * * KeeeX SAS Public code * https://keeex.me * Copyright 2013-2023 KeeeX All Rights Reserved. * * These computer program listings and specifications, herein, * are and remain the property of KeeeX SAS. The intellectual * and technical concepts herein are proprietary to KeeeX SAS * and may be covered by EU and foreign patents, * patents in process, trade secrets and copyright law. * * These listings are published as a way to provide third party * with the ability to process KeeeX data. * As such, support for public inquiries is limited. * They are provided "as-is", without warrany of any kind. * * They shall not be reproduced or copied or used in whole or * in part as the basis for manufacture or sale of items unless * prior written permission is obtained from KeeeX SAS. * * For a license agreement, please contact: * * */ import * as digestTypes from "../digesttypes.js"; /** * Convert a list of algorithm to their kxMash string identifier. * * This is useful to store the sequence of algorithms alongside the result of the computation. * * @public */ export declare const kxMashAlgoToString: (algorithm: Array) => string; /** * Convert a kxMash string identifier to a list of algorithms. * * The inverse of the `kxMashAlgoToString()` function. * * @public */ export declare const kxMashStringToAlgo: (algorithmStr: string) => Array; /** * KeeeX multihash (kxMash) block-based implementation. * * This is an internal helper and should only be instancied through a call to `digest()`. * * @internal */ export declare class Multihash implements digestTypes.Digest { #private; /** * Create the multihash processing code. * * The digests must be pre-seeded with the kxMash identifier string by the caller. * * @internal */ constructor(digests: Array); update: (bytes: Uint8Array) => Promise; digest: (bytes?: Uint8Array) => Promise; }