import type { ILisaContext } from '../../domain/interfaces'; interface IFolderMetadata { path: string; groupId: string; type: 'project' | 'documents' | 'assets' | 'unknown'; projectType?: string; framework?: string; description?: string; } /** * Detects project context from the current working directory. */ export declare class ContextDetector { /** * Detect full context for a project. */ static detect(projectRoot?: string): ILisaContext; /** * Normalize a path to a valid group ID string. */ static normalizePathToGroupId(absolutePath: string): string; /** * Get the current folder's group ID. */ static getCurrentGroupId(cwd?: string): string; /** * Get hierarchical group IDs from current folder up to root. * Always includes at least the current folder's group ID. */ static getHierarchicalGroupIds(cwd?: string): string[]; /** * Parse a .env file into key-value pairs. */ private static parseEnvFile; /** * Read the .lisa/.env file. */ private static readEnvConfig; /** * Detect project name from package.json. */ private static detectFromPackageJson; /** * Detect project name from pyproject.toml. */ private static detectFromPyproject; /** * Detect project name from Cargo.toml. */ private static detectFromCargoToml; /** * Detect project name from go.mod. */ private static detectFromGoMod; /** * Detect project name using the fallback chain. */ private static detectProjectName; /** * Get the project name. */ static detectRepo(projectRoot: string): string; /** * Get project aliases for querying. */ static getProjectAliases(projectRoot: string): string[]; /** * Detect git branch. */ static detectBranch(projectRoot: string): string | null; /** * Get current user name. */ static getUserName(): string; /** * Generate repo tags for queries. */ static repoTags(options?: { repo?: string; branch?: string | null; }): string[]; /** * Detect folder metadata. */ static detectFolderMetadata(projectRoot: string): IFolderMetadata; /** * Format folder metadata for display. */ static formatFolderMetadata(metadata: IFolderMetadata): string; } export {}; //# sourceMappingURL=ContextDetector.d.ts.map