import { type Abi, type DecodeFunctionDataReturnType, type Hex } from "viem"; /** * Given an ABI and calldata (or 4-byte selector), returns the function * signature (e.g. `"balanceOf(address)"`) by matching against selectors * computed from the ABI's function items. * * @throws if no matching function is found in the ABI */ export declare function getFunctionSignature(abi: Abi | readonly unknown[], calldataOrSelector: Hex): string; /** * Converts decoded function args (as decoded by viem, i.e. as array) to named map of args * Can return undefined if function is not found in ABI * @param abi * @param functionName * @param args * @returns */ export declare function functionArgsToMap(abi: T, functionName: string, args: DecodeFunctionDataReturnType["args"]): Record; /** * Converts decoded function args to a named record preserving original types. * Unlike {@link functionArgsToMap}, values are not stringified. */ export declare function functionArgsToRecord(abi: T, functionName: string, args: DecodeFunctionDataReturnType["args"]): Record;