export type Exports = { [key: string]: any; }; export type PatchFunction = (exports: Exports, name: string) => Exports; export type Patch = { apply: PatchFunction; versionConstraint: string | null; }; export type PatchOptions = { errorIfAlreadyLoaded?: boolean; versionConstraint?: string | null; }; export declare function safeResolve(packagePath: string): string | null; export declare function patchModules(modules: string[], apply: PatchFunction, patchOptions?: PatchOptions): void; export declare function patchAll(patch: Patch): void;