import type { PatchedFile } from "./apply-patch"; /** * Files whose patched source was compiled in place of the original. Registering * an override only takes effect if the module is required afterwards, so this * is the difference between a patch being staged and a patch being live. */ export declare function compiledPaths(): string[]; export declare function isAlreadyLoaded(absolutePath: string): boolean; export declare function isOverridden(absolutePath: string): boolean; export declare function registerOverrides(packageDir: string, files: PatchedFile[], resolve: (packageDir: string, relativePath: string) => string): void; export declare function purgeFiles(absolutePaths: string[]): void; /** * Compiles the patched sources now, so the override is what the process holds. * * Re-running a module that calls `createWorkflow` hits Medusa's duplicate guard, * which only lets a workflow re-register when its step definition is byte-equal * — and step ids are generated, so a second load of the same file is not. The * reload replays the same source, so replacing the previous definition is the * correct outcome; `register` is swapped for the duration to say so. */ export declare function reload(packageDir: string, absolutePaths: string[]): void;