import type { Abi, AbiFunction, AbiParameter, AbiParametersToPrimitiveTypes, ExtractAbiFunction, ParseAbiItem } from "abitype"; import type { TransactionReceipt as ViemTransactionReceipt } from "viem"; import type { ThirdwebContract } from "../contract/contract.js"; import type { Hex } from "../utils/encoding/hex.js"; import type { PreparedTransaction, StaticPrepareTransactionOptions } from "./prepare-transaction.js"; export type SendTransactionResult = { readonly transactionHash: Hex; }; export type TransactionReceipt = ViemTransactionReceipt; export type WithOverrides = T & { overrides?: Omit; }; export type ParamsOption = inputs extends { length: 0; } ? { params?: readonly unknown[]; } : { params: Readonly> | (() => Promise>>); }; export type BaseTransactionOptions = { contract: ThirdwebContract; } & T; /** * Checks if the given value is of type TxOpts. * @param value - The value to check. * @returns True if the value is of type TxOpts, false otherwise. * @internal */ export declare function isBaseTransactionOptions(value: unknown): value is PreparedTransaction; export type ParseMethod) => Promise)> = method extends AbiFunction ? method : method extends string ? method extends `function ${string}` ? ParseAbiItem extends AbiFunction ? ParseAbiItem : never : abi extends { length: 0; } ? AbiFunction : ExtractAbiFunction : AbiFunction; //# sourceMappingURL=types.d.ts.map