import "hardhat/types/network"; import type { ConstructorArgs, ContractAbis, DeployContractConfig, GetContractAtConfig, HardhatViemHelpers as HardhatViemHelpers_, } from "@nomicfoundation/hardhat-viem/types"; import type { Address, ContractConstructorArgs } from "viem"; import type { AnyArtifact, ContractReturnType } from "../types.js"; interface DeployContract { ( contractName: ContractName, constructorArgs?: ConstructorArgs, deployContractConfig?: DeployContractConfig ): Promise>; ( contractArtifact: ContractArtifact, constructorArgs?: ContractConstructorArgs, deployContractConfig?: DeployContractConfig ): Promise>; } declare module "hardhat/types/network" { type HardhatViemHelpers< ChainTypeT extends ChainType | string = DefaultChainType > = Omit< HardhatViemHelpers_, "deployContract" | "getContractAt" > & { deployContract: DeployContract; getContractAt: ( contractName: ContractName, address: Address, getContractAtConfig?: GetContractAtConfig ) => Promise>; }; }