export interface ForgeConfig { forgeRoot: string; configPath: string; /** Set when the configured forgeRoot did not exist and resolution fell * back to this forgecli's bundled payload (testbench clone-portability: * tracked configs carry another machine's global npm / plugin-cache * path). Carries the original dangling path for diagnostics. */ healedFrom?: string; /** Set when the configured forgeRoot resolved to an untrusted location * (outside the project tree and outside this forgecli's bundled payload) * and was rejected in favour of the bundled payload. Carries the original * rejected path for diagnostics. See the containment note in * discoverForgeConfig. */ rejectedFrom?: string; } /** * Discover the forge plugin root AND return the config path so callers can * read other config fields (e.g. `project.name`) without re-scanning. * Returns null when no `.forge/config.json` is found or it lacks `paths.forgeRoot`. */ export declare function discoverForgeConfig(cwd?: string): ForgeConfig | null;