import type { CliLogger } from '../utils/logger.js'; /** * Supported c15t entry points. Every value resolves to the single `c15t` * umbrella package on npm; the subpath selects the framework integration * generated code imports from. */ export type AvailablePackages = 'c15t/next' | 'c15t/react' | 'c15t'; export type DevelopmentEnvironment = 'vite' | 'node' | 'manual'; /** * Framework detection result */ export interface FrameworkDetectionResult { developmentEnvironment?: DevelopmentEnvironment; /** Documentation for frameworks that require manual integration. */ manualSetupUrl?: string; framework: string | null; frameworkVersion: string | null; pkg: AvailablePackages; hasReact: boolean; reactVersion: string | null; tailwindVersion: string | null; } /** * Detects the framework and React usage in the project * * @param projectRoot - The root directory of the project * @param logger - Optional logger instance for debug messages * @returns Object containing framework info and whether React is used */ export declare const detectFramework: (projectRoot: string, logger?: CliLogger) => Promise; /** * Detects the project root by finding the package.json file * * @param cwd - Current working directory * @param logger - Optional logger instance for debug messages * @returns The project root directory path or cwd if not found */ export declare const detectProjectRoot: (cwd: string, logger?: CliLogger) => Promise;