import { P as ProjectContext } from '../index-CFm-GmeT.js'; /** * @silverassist/performance-toolkit * * Project context detector for analyzing technology stack and patterns. * * @module context * @author Miguel Colmenares * @license PolyForm-Noncommercial-1.0.0 */ /** * Project context detector for analyzing user's technology stack */ declare class ProjectContextDetector { private packageJson; private projectRoot; constructor(projectRoot?: string); /** * Detects the complete project context */ detect(): Promise; /** * Loads and parses package.json */ private loadPackageJson; /** * Detects the main framework being used */ private detectFramework; /** * Detects Next.js specific configuration */ private detectNextJS; /** * Detects Nuxt specific configuration */ private detectNuxt; /** * Detects Remix specific configuration */ private detectRemix; /** * Detects Gatsby specific configuration */ private detectGatsby; /** * Detects Astro specific configuration */ private detectAstro; /** * Detects package manager from lock files */ private detectPackageManager; /** * Detects build tool */ private detectBuildTool; /** * Detects CSS solution */ private detectCSSSolution; /** * Detects if project uses TypeScript */ private detectTypeScript; /** * Detects image optimization library */ private detectImageOptimization; /** * Detects analytics libraries */ private detectAnalytics; /** * Detects third-party integrations */ private detectThirdPartyIntegrations; /** * Detects UI library */ private detectUILibrary; /** * Checks if a dependency exists */ private hasDependency; /** * Gets version of a dependency */ private getDependencyVersion; /** * Gets all dependencies as array */ private getAllDependencies; /** * Parses major version from semver string */ private parseMajorVersion; } /** * Creates a project context detector instance * @param projectRoot - Root directory of the project * @returns ProjectContextDetector instance */ declare function createContextDetector(projectRoot?: string): ProjectContextDetector; /** * Quick function to detect project context * @param projectRoot - Root directory of the project * @returns Detected project context */ declare function detectProjectContext(projectRoot?: string): Promise; export { ProjectContextDetector, createContextDetector, detectProjectContext };