export type RepoFile = { path: string; absolutePath: string; }; export type SearchMatch = { path: string; line: number; text: string; }; export type SafeReadFileOptions = { offset?: number; limit?: number; maxBytes?: number; }; export type SafeReadFileResult = { path: string; content: string; startLine: number; endLine: number; totalLines: number; truncated: boolean; }; export type SearchCodeOptions = { limit?: number; literal?: boolean; timeoutMs?: number; }; export declare function discoverFiles(cwd: string): Promise; export declare function safeReadFile(cwd: string, relativePath: string, options?: SafeReadFileOptions): Promise; export declare function safeReadFileDetailed(cwd: string, relativePath: string, options?: SafeReadFileOptions): Promise; export declare function searchCode(cwd: string, query: string, options?: SearchCodeOptions): Promise; export declare function readRelevantFiles(cwd: string, files: RepoFile[], maxFiles?: number): Promise>; export declare function detectLanguage(files: RepoFile[]): "typescript" | "javascript" | "mixed" | "unknown"; export declare function detectFramework(files: RepoFile[]): "nextjs" | "node" | "unknown"; export declare function resolveWorkspaceFile(cwd: string, relativePath: string): Promise; export declare function resolveWorkspaceDirectory(cwd: string, relativePath?: string): Promise;