type ExtensionValues = { /** Pipeline-ordered identifiers from `metadata.extrinsic.signedExtensions`. */ order: string[]; /** Per-identifier explicit + implicit bytes as papi computed them. */ byIdentifier: Record; }; declare const concatBytes: (...arrays: Uint8Array[]) => Uint8Array; /** SCALE compact-encode a non-negative integer (length-prefix use only). */ declare const compactEncode: (n: number) => Uint8Array; declare const blake2_256: (data: Uint8Array) => Uint8Array; /** * Build the bytes the runtime hashes for `AsPersonalIdentityWithProof`. * * msg = blake2_256( encode((0u8, &call), &rest_ext, &rest_ext.implicit()) ) * * The leading `0u8` is the extension-version byte that prefixes V5 General * transactions (always `0` for the current extension scheme). */ declare const buildImplicationMessage: (callBytes: Uint8Array, extensions: ExtensionValues, excludeIdentifiers: string | Set) => Uint8Array; /** * Build the V5 General extrinsic wire bytes: * * compactLen( 0x45 || 0x00 (ext_version) || concat(all_explicit) || callBytes ) * * `0x45` = version 5 + type General (`5 + (1 << 6)`). */ declare const buildV5GeneralExtrinsic: (callBytes: Uint8Array, extensions: ExtensionValues) => Uint8Array; declare const toHex: (bytes: Uint8Array) => `0x${string}`; /** Convert a hex string (with or without 0x prefix) to Uint8Array. */ declare const hexToBytes: (hex: string) => Uint8Array; /** Convert Uint8Array to a lowercase 0x-prefixed hex string. */ declare const bytesToHex: (b: Uint8Array) => string; /** * Parse the chain metadata (passed to `signer.signTx`) and return the * pipeline-ordered list of signed-extension identifiers. Handles V14/V15 * (flat array) and V16 (nested under `[0]`). */ declare const readExtensionOrder: (metadata: Uint8Array) => Promise; /** * SCALE-encode `Vec<[u8; 32]>` — the shape that `verifiablejs.one_shot(...)` * decodes as the ring members list. Each input must be exactly 32 bytes. * Encoded as: compact(len) || member[0] || member[1] || ... */ declare const encodeMembers: (members: Uint8Array[]) => Uint8Array; export { type ExtensionValues, blake2_256, buildImplicationMessage, buildV5GeneralExtrinsic, bytesToHex, compactEncode, concatBytes, encodeMembers, hexToBytes, readExtensionOrder, toHex };