import { ContractFactory, InterfaceAbi } from "ethers"; import { Bytecode } from "./deployer.js"; export interface TypechainFactoryClass { new (...args: any): A; abi: any; bytecode: any; createInterface(): any; connect(address: string, runner?: any): I; } export interface BytecodeFactory { abi: InterfaceAbi; bytecode: Bytecode; contractName: string; } type Parameters any> = T extends (...args: infer P) => any ? P extends [...infer Rest, any?] ? Rest : any : never[]; export type TypedArgs = A extends { deploy(...args: any): any; } ? Parameters : any; export type BaseInstance = Omit, "bytecode"> | Omit | Omit; export type Instance = TypechainFactoryClass | BytecodeFactory | ContractFactory; export {}; //# sourceMappingURL=adapter.d.ts.map