export declare const LEGACY_SELF_MODIFICATION_ROOT = "agent/subagents/self-modification";
export interface LegacySelfModificationScaffold {
    readonly root: string;
    readonly paths: readonly string[];
    readonly customized: boolean;
    readonly signature: string;
}
/** Reads only the bounded legacy scaffold; consumer modules are never imported or executed. */
export declare function detectLegacySelfModificationScaffold(appRoot: string): Promise<LegacySelfModificationScaffold | undefined>;
export declare function removeLegacySelfModificationScaffold(appRoot: string, scaffold: LegacySelfModificationScaffold): Promise<void>;
