export type PackageJSON = Record & { config?: { forge?: Record; }; dependencies?: Record; devDependencies?: Record; }; export declare function runNPMInstall(dir: string, ...args: string[]): Promise; export declare function ensureModulesInstalled(dir: string, deps: string[], devDeps: string[]): Promise; export declare function ensureTestDirIsNonexistent(): Promise; export declare function expectLintToPass(dir: string): Promise; /** * Helper function to mock CommonJS `require` calls with Vitest. * * @see https://github.com/vitest-dev/vitest/discussions/3134 * @param mockedUri - mocked module URI * @param stub - stub function to assign to mock */ export declare function mockRequire(mockedUri: string, stub: any): Promise; /** * Mutates the `package.json` file in a directory. * Use the return value to later restore the original `package.json` value * in a subsequent call of this function. * * @param dir - The target directory containing the `package.json` file * @param callback - A callback function that returns the value of the new `package.json` to be applied * @returns The original `package.json` prior to mutation */ export declare function updatePackageJSON(dir: string, callback: (packageJSON: PackageJSON) => Promise): Promise; //# sourceMappingURL=index.d.ts.map