///
import { Deployer } from "truffle-deployer";
import { TruffleArtifacts } from "truffle";
import Web3 from "web3";
declare type MigrationFunc = (deployer: Deployer, network?: string, accounts?: string[]) => void;
declare type FullMigrationFunc = (deployer: Deployer, network: string, accounts: string[]) => void;
declare type HookFunc = (migrationPath: string, web3: Web3, artifacts: TruffleArtifacts, deployer: Deployer, network: string, accounts: string[]) => Promise;
/**
* Defines controller object that allows to organize migration hooks: local and global one.
*/
export declare class MigrationController {
static active: boolean;
static beforeMigrationStaticHook: HookFunc;
static afterMigrationStaticHook: HookFunc;
static create(): MigrationController;
private _skip;
private _beforeMigrationInstanceHook;
private _afterMigrationInstanceHook;
/**
* Skips all steps for current migration
*/
skip(): MigrationController;
/**
* Sets migration hook function that will be performed before migration
* @param hook function that will be performed before actual migration
*/
setBeforeMigrationInstanceHook(hook: HookFunc): MigrationController;
/**
* Sets migration hook function that will be performed after migration is finished
* @param hook function that will be performed after actual migration
*/
setAfterMigrationInstanceHook(hook: HookFunc): MigrationController;
/**
* Wraps truffle migration into custom function and allows to apply migration hooks
* @param targetFilePath migration filepath
* @param artifacts truffle artifacts module
* @param migration actual migration function
*/
wrapTruffleMigration(targetFilePath: string, web3: Web3, artifacts: TruffleArtifacts, migration: MigrationFunc): FullMigrationFunc;
}
export {};