export declare class RenovateHasNotBeenPatchedError extends Error { } /** * Ensures that the patches `renovate-graph` applies to `renovate` are applied correctly. * * The behaviour, introduced in 0.27.4 (using `pnpm patch`) and updated in 0.27.6 (using `patch-package`), should be ensured to be working, as we do not want to have users using the unpatched code, as it will lead to inconsistencies in behaviour. * * This was previously handled by providing a (less maintainable, but more easy to control) vendored copy of key Renovate code paths. * * There is a "safety hatch" to allow this to be bypassed, wired in via the `RG_ALLOW_UNPATCHED_DEPENDENCIES` environment variable. * * @param allowUnpatched whether to make it possible to continue running `renovate-graph` if we have been unable to patch Renovate * * @throws RenovateHasNotBeenPatchedError if we have been unable to patch Renovate */ export declare function ensureRenovateDependencyIsPatched(allowUnpatched: boolean): Promise; /** * Determines if the patches `renovate-graph` applies to `renovate` are applied correctly. * * The behaviour, introduced in 0.27.4 (using `pnpm patch`) and updated in 0.27.6 (using `patch-package`), should be ensured to be working, as we do not want to have users using the unpatched code, as it will lead to inconsistencies in behaviour. * * This was previously handled by providing a (less maintainable, but more easy to control) vendored copy of key Renovate code paths. */ export declare function isRenovatePatched(): Promise; export declare function attemptToPatchRenovate(): Promise;