import * as Config from '@oclif/config'; import { loadConfig } from './load-config'; declare const _default: (event: string, hookOpts?: object, options?: loadConfig.Options) => { run(ctx: { config: Config.IConfig; expectation: string; }): Promise; }; /** * tests a oclif hook * * @example check that when the 'init' hook is ran it outputs "this output" * testHook('init', {id: 'mycommand'}, {stdout: true}, output => { * expect(output.stdout).to.contain('this output') * }) * * @param {string} event hook to run * @param {object} hookOpts options to pass to hook. Config object will be passed automatically. */ export default _default;