import { Compiler, Diagnostic, FileInspectionResult, Spec } from '@pandacss/compiler-shared'; import { LoadConfigResult } from '@pandacss/config'; interface NativeCompiler extends Compiler { } interface ProjectKey { cwd: string; /** Explicit config file (relative to `cwd`); otherwise discovered upward. */ configPath?: string; } interface Project { compiler: NativeCompiler; configPath: string; dependencies: string[]; outdir: string; /** Non-fatal issues surfaced while hydrating a consumed design-system package. */ designSystemDiagnostics: Diagnostic[]; /** Treeshake import fingerprint (watch sync). */ designSystemTreeshakeKey?: string; } declare function createProjectFromLoadedConfig(loaded: LoadConfigResult): Project; declare function createProjectFromConfig(key: ProjectKey): Promise; interface FileInspectionCacheEntry { sourceKey: string; result: FileInspectionResult; } /** Caches `compiler.inspectFile()` results per `(compiler, path)`, invalidated by source content. */ declare class FileInspector { #private; inspect(compiler: Compiler, path: string, source: string): FileInspectionResult; clear(compiler?: Compiler): void; } declare function sourceCacheKey(source: string): string; declare class SpecIndex { #private; constructor(spec: Spec); resolveTokenCategoryForProperty(property: string): string | undefined; } export { type FileInspectionCacheEntry, FileInspector, type Project, type ProjectKey, SpecIndex, createProjectFromConfig, createProjectFromLoadedConfig, sourceCacheKey };