import { BlockHash, Header, Metadata } from '@dedot/codecs'; import { HashFn } from '@dedot/utils'; /** * Detects the hasher from V16 metadata by looking at the System pallet's Hashing associated type * * @param metadata - The metadata to inspect * @returns The detected HashFn or undefined if detection fails */ export declare function detectHasherFromMetadata(metadata: Metadata): HashFn | undefined; /** * Detects the hasher by trying different hash functions on a block header * and comparing the result with the expected block hash * * @param header - The block header to hash * @param expectedHash - The expected block hash * @returns The matching HashFn or undefined if no match is found */ export declare function detectHasherFromHeader(header: Header, expectedHash: BlockHash): HashFn | undefined;