import { MultiDbManager } from '../core/multi-db-manager'; import { Module } from '../models/module'; /** * API for X-Dimension: Modules */ export declare class ModuleApi { private dbManager; constructor(dbManager: MultiDbManager); /** * Gets a module by ID. */ getModuleById(id: string, pluginId: string): Promise; /** * Gets a module by file path with flexible path normalization. * Supports various path formats: * - Absolute paths (with workspace root) * - Relative paths * - Paths with different separators (/, \) * - Paths with plugin prefixes */ getModuleByPath(filePath: string, pluginId: string): Promise; /** * Normalizes a file path to generate possible variants for flexible matching. * Returns an array of path variants in order of preference. * * Generates variants: * - With/without leading slashes * - With/without plugin prefixes * - Different separators (normalized to /) */ /** * Gets all modules for a plugin. */ getAllModules(pluginId: string): Promise; /** * Gets modules by content hash (for change detection). */ getModulesByContentHash(contentHash: string, pluginId: string): Promise; } //# sourceMappingURL=module-api.d.ts.map