/** * CLI Module Loader * * Implements module loading for the Rill CLI with circular dependency detection. * See docs/integration-modules.md for module convention specification. */ import type { RillValue } from '@rcrsr/rill'; /** * Load a module and its dependencies recursively. * * @param specifier - Module path (relative or absolute) * @param fromPath - Path of the importing file * @param cache - Module cache keyed by canonical path * @param chain - Set of paths in current import chain for circular detection * @returns Dict of exported values * @throws Error if module not found or circular dependency detected */ export declare function loadModule(specifier: string, fromPath: string, cache: Map>, chain?: Set): Promise>;