type RequireWeakOptionsT = { basePath?: string; }; type RequireWeakResT = T extends { default: infer D; } ? (D extends null | undefined ? T : D & Omit) : T; /** * Requires the specified module without including it into the bundle during * Webpack build. * @param modulePath * @param [basePath] * @return Required module. */ export declare function requireWeak(modulePath: string, basePathOrOptions?: RequireWeakOptionsT | string): RequireWeakResT | null; /** * Resolves specified module path with help of Babel's module resolver. * Yes, the function itself just returns its argument to the caller, but Babel * is configured to resolve the first argument of resolveWeak(..) function, thus * the result will be the resolved path. * @param {string} modulePath * @return {string} Absolute or relative path to the module. */ export declare function resolveWeak(modulePath: string): string; export {};