/** * A base class for lists of things */ declare class Codex { /** * Check if a codex entry exists by checking both keys and values. * @param prop - The property to check for existence. */ has(prop: string): boolean; } /** * A list of supported algorithms for deriving self-addressing identifiers. */ declare class SAIDAlgoCodex extends Codex { Blake3_256: string; Blake2b_256: string; SHA2_256: string; SHA3_256: string; } export declare const SAIDDex: SAIDAlgoCodex; type DigestFn = (ser: Uint8Array) => Buffer; /** * A class for storing a digest function and its size (not default) and length. * Size and length are needed for some digest types as function parameters. */ declare class Digestage { /** * The digest function to use that calls the algorithm appropriate function. */ fn: DigestFn; /** * An argument needed for some digest types. */ size?: number | undefined; /** * An argument needed for some digest types. */ length?: number | undefined; constructor(fn: DigestFn, size?: number, length?: number); } export declare const DigestAlgoMap: Map; export {};