import { type IProjectModel } from "../abstractions/models/index.js"; export declare class ExtensionSrcResolver { private static pathMappings; /** * Import a module from a given file path. * - If path starts with "/extensions/", it resolves from project root * - If path matches tsconfig path alias (e.g., "@/*"), it resolves using tsconfig * - Otherwise, treats path as absolute * Returns the default export or named export matching the filename. */ static importFromPath(filePath: string, project: IProjectModel): Promise; /** * Resolve a file path to an absolute path. * - If path starts with "/extensions/", it resolves from project root * - If path matches tsconfig path alias (e.g., "@/*"), it resolves using tsconfig * - Otherwise, treats path as absolute * Returns the absolute path without importing. */ static resolvePath(filePath: string, project: IProjectModel): string; /** * Check if a file exists at the given path. * Resolves the path using the same logic as resolvePath before checking. * - If path starts with "/extensions/", it resolves from project root * - If path matches tsconfig path alias (e.g., "@/*"), it resolves using tsconfig * - Otherwise, treats path as absolute * Returns true if the file exists, false otherwise. */ static existsSync(filePath: string, project: IProjectModel): boolean; private static resolvePathAlias; private static loadPathMappings; private static matchPattern; private static replacePlaceholder; }