import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; export interface MagicContextInheritedContext { readonly compressedContext: string; readonly boundaryEntryId: string; } interface MagicContextInheritanceBridge { getInheritedContext(sessionId: string): MagicContextInheritedContext | undefined; } declare global { var __hepiMagicContextInheritanceByRuntime: WeakMap | undefined; } /** Return MCTX's already-materialized parent context, when the active runtime provides it. */ export declare function getMagicContextInheritedContext(pi: ExtensionAPI, sessionId: string): MagicContextInheritedContext | undefined; export declare function withMagicContextSubagentLoad(operation: () => Promise): Promise; export {};