/// declare namespace Chai { interface Assertion extends LanguageChains, NumericComparison, TypeComparison { emit(eventName: string, contractOrAddress?: any): EmitAssertion; call(methodName: string, contractOrAddress?: any): EmitAssertion; error(errorCode?: number | null, contractOrAddress?: any): AsyncAssertion; } interface AsyncAssertion extends Assertion, Promise { } interface EmitAssertion extends AsyncAssertion { withNamedArgs(args: Record, message?: string): AsyncAssertion; count(count: number): EmitAssertion; } }