import { Expression, SourceFile } from 'ts-morph';
import { IConstantResolver } from '../interface/IConstantResolver';
import { HMRouterExtensionContext } from '../../HMRouterExtensionContext';
export declare class ConstantResolver implements IConstantResolver {
    private importMapCache;
    private importMapCacheFilePath;
    private context?;
    setContext(context: HMRouterExtensionContext): void;
    resolveConstant(value: any, sourceFile: SourceFile, filePath: string): any;
    resolvePropertyValue(value: Expression, sourceFile: SourceFile, filePath: string): any;
    getVariableFilePath(variableName: string, sourceFile: SourceFile, filePath: string): string;
    getOtherModuleVariableFilePath(moduleName: string, variableName: string): string;
    private findExportInFile;
    private isFileExists;
    private findLocalDefinition;
    private findReExportedDeclaration;
    private findReExport;
    private shouldCheckReExport;
    private findNamedExport;
    private parsePrimitiveValue;
    private parseConstantValue;
}
