declare module "truffle" {
import * as truffle from "truffle-contract";
interface ArtifactsGlobal {
require(name: string): truffle.TruffleContract;
}
global {
function contract(
name: string,
callback: (accounts: Array) => void
): void;
const artifacts: ArtifactsGlobal;
}
}