import type { Abi, AbiFunction } from "abitype"; import type { ThirdwebContract } from "../contract/contract.js"; /** * Resolves and returns the ABI function with the specified method name. * Throws an error if the function is not found in the ABI. * @template abiFn - The type of the ABI function. * @param method - The name of the method to resolve. * @returns The resolved ABI function. * @throws Error if the function is not found in the ABI. * @example * ```ts * import { resolveMethod, prepareContractCall } from "thirdweb"; * const tx = prepareContractCall({ * contract, * // automatically resolves the necessary abi to encode the transaction * method: resolveMethod("transfer"), * // however there is no type completion for params in this case (as the resolution is async and happens at runtime) * params: [to, value], * }); * ``` * @contract */ export declare function resolveMethod(method: string): (contract: ThirdwebContract) => Promise; //# sourceMappingURL=resolve-method.d.ts.map