import { HardhatRuntimeEnvironment } from 'hardhat/types'; import type { ContractFactory } from 'ethers'; import { DeployTransaction, DefenderDeploy } from '.'; import { Deployment, RemoteDeploymentId, DeployOpts } from '@openzeppelin/upgrades-core'; import { ContractTypeOfFactory } from '../type-extensions'; /** * Gets a contract instance from a deployment, where the deployment may be remote. * If the deployment is remote, the instance has an overridden `waitForDeployment` method to wait for the remote deployment * and update its `deploymentTransaction` with the new transaction hash if it was detected to have changed. * * @param hre The Hardhat Runtime Environment * @param contract The contract factory * @param opts The deploy and defender options * @param deployment The deployment * @param deployTransaction The transaction that deployed the contract, if available * @returns The contract instance */ export declare function getContractInstance(hre: HardhatRuntimeEnvironment, contract: F, opts: DeployOpts & DefenderDeploy, deployment: Deployment & DeployTransaction & RemoteDeploymentId): ContractTypeOfFactory; //# sourceMappingURL=contract-instance.d.ts.map