1 | declare module 'require-in-the-middle' {
|
2 | namespace hook {
|
3 | type Options = {
|
4 | internals?: boolean;
|
5 | };
|
6 | type OnRequireFn = <T>(exports: T, name: string, basedir?: string) => T;
|
7 | }
|
8 | function hook(modules: string[] | null, options: hook.Options | null, onRequire: hook.OnRequireFn): void;
|
9 | function hook(modules: string[] | null, onRequire: hook.OnRequireFn): void;
|
10 | function hook(onRequire: hook.OnRequireFn): void;
|
11 | export = hook;
|
12 | }
|