import 'hardhat/types/config'; import 'hardhat/types/runtime'; import { Matchers } from 'expect/build/types'; interface CustomMatchers extends Matchers { toBeZeroAddress(): T; toBeBN(value: unknown): T; toBeGreaterThanBN(value: unknown): T; toBeGreaterThanOrEqualBN(value: unknown): T; toBeLessThanBN(value: unknown): T; toBeLessThanOrEqualBN(value: unknown): T; not: CustomMatchers; resolves: CustomMatchers>; rejects: CustomMatchers>; } declare global { export const expect: { (actual: T): CustomMatchers; }; } declare module 'hardhat/types/runtime' { export interface HardhatRuntimeEnvironment { expect?: { (actual: T): CustomMatchers; }; } } declare module 'hardhat/types/config' { interface BuildPathsConfig { artifacts?: string; dist?: string; typings?: string; } interface ENSConfig { internalTopLevelDomains?: string[]; } type Create2Salts = { default: string; [key: string]: string; }; type KnownContractsConfig = { [key: string]: { [key: string]: string }; }; export interface HardhatUserConfig { buildPaths: BuildPathsConfig; ens: ENSConfig; knownContracts: KnownContractsConfig; create2Salts: Create2Salts; } export interface HardhatConfig { buildPaths: BuildPathsConfig; ens: ENSConfig; knownContracts: KnownContractsConfig; create2Salts: Create2Salts; } }