import { LineIndex, TransformResult } from './sourceLocation.js'; import { ParseAstResult } from '@tanstack/router-utils'; export type UsagePos = { line: number; column0: number; }; type BoundaryEnv = 'client' | 'server'; type ImportBindingInfo = { importedLocalNames: Set; }; type UsageCacheKey = `${BoundaryEnv | 'post'}::${string}`; export type ImportAnalysis = { ast: ParseAstResult; lineIndex: LineIndex; importSourcesInOrder: Array; importSpecifierLocationIndex: Map; importBindingsBySource: Map; mockExportNamesBySource: Map>; namedExports: Array; usageByKey: Map; }; export declare function isValidExportName(name: string): boolean; export declare function getOrCreateImportAnalysis(result: TransformResult): ImportAnalysis; export declare function getImportSourcesFromResult(result: TransformResult): Array; export declare function getImportSources(code: string, filename?: string, perf?: TransformResult['perf']): Array; export declare function getImportSpecifierLocationFromResult(result: TransformResult, source: string): number; export declare function getMockExportNamesBySourceFromResult(result: TransformResult): Map>; export declare function getMockExportNamesBySource(code: string, filename?: string, perf?: TransformResult['perf']): Map>; export declare function getNamedExportsFromResult(result: TransformResult): Array; export declare function getNamedExports(code: string, filename?: string, perf?: TransformResult['perf']): Array; export declare function findPostCompileUsagePosFromResult(result: TransformResult, source: string): UsagePos | undefined; export declare function findPostCompileUsagePos(code: string, source: string): UsagePos | undefined; export declare function findOriginalUnsafeUsagePosFromResult(result: TransformResult, source: string, envType: BoundaryEnv): UsagePos | undefined; export declare function findOriginalUnsafeUsagePos(code: string, source: string, envType: BoundaryEnv): UsagePos | undefined; export {};