/// /** * Module to hook into the Node.js require and require.resolve function * @author imcuttle */ import * as ModuleType from 'module'; export declare type StrictMatch = string | ((id: string) => boolean) | RegExp; export declare type Match = StrictMatch | StrictMatch[]; export declare type OnResolve = (id: string, parent: null | ModuleType, isMain: boolean, options: any) => string | false; export declare type Options = { ignoreModuleNotFoundError?: boolean; }; declare const requireResolveHook: (match: Match, onResolve: OnResolve, options?: Options) => { bypass: (fn: () => any) => any; unhook: () => void; }; export declare const bypass: (fn: () => any) => any; export declare const unhook: () => void; export default requireResolveHook;