import { ContextConsumerSite } from '../../../domain/types/index.js'; /** * v0.9.0: A registry of known Context providers and the SharedValues they expose. * Populated by scanning files and used for cross-file resolution. */ export interface ContextRegistry { /** contextName → list of SharedValue names exposed by that context */ [contextName: string]: string[]; } /** * Detect Context.Provider patterns in source code. * Returns a map of context names to the SharedValue names they expose. */ export declare function detectContextProviders(source: string): ContextRegistry; /** * Detect useContext consumers in source code. * Returns a list of context consumers with their variable names and line numbers. */ export declare function detectContextConsumers(source: string): ContextConsumerSite[]; /** * v0.9.0: Resolve cross-file context providers by scanning imported files. * This is the original cross-file resolution method, preserved for backward * compatibility when resolveCrossFile option is explicitly set. */ export declare function resolveCrossFileContexts(filePath: string, source: string, registry: ContextRegistry): void; /** * v0.10.0: Auto-discover context providers by scanning all relative imports * recursively. Builds a context registry mapping context names to the * SharedValues they expose, without requiring manual configuration. */ export declare function autoDiscoverContexts(filePath: string, source: string, registry: ContextRegistry): void; //# sourceMappingURL=context-resolver.d.ts.map