| | |
| | |
| | |
| | |
| | |
| | |
| | export interface PatternMatch { |
| | type: 'function' | 'class' | 'import' | 'export' | 'todo' | 'variable' | 'type'; |
| | match: string; |
| | file: string; |
| | line?: number; |
| | } |
| | export interface FilePatterns { |
| | file: string; |
| | language: string; |
| | functions: string[]; |
| | classes: string[]; |
| | imports: string[]; |
| | exports: string[]; |
| | todos: string[]; |
| | variables: string[]; |
| | } |
| | |
| | |
| | |
| | export declare function detectLanguage(file: string): string; |
| | |
| | |
| | |
| | export declare function extractFunctions(content: string): string[]; |
| | |
| | |
| | |
| | export declare function extractClasses(content: string): string[]; |
| | |
| | |
| | |
| | export declare function extractImports(content: string): string[]; |
| | |
| | |
| | |
| | export declare function extractExports(content: string): string[]; |
| | |
| | |
| | |
| | export declare function extractTodos(content: string): string[]; |
| | |
| | |
| | |
| | export declare function extractAllPatterns(filePath: string, content?: string): FilePatterns; |
| | |
| | |
| | |
| | export declare function extractFromFiles(files: string[], maxFiles?: number): FilePatterns[]; |
| | |
| | |
| | |
| | export declare function toPatternMatches(patterns: FilePatterns): PatternMatch[]; |
| | declare const _default: { |
| | detectLanguage: typeof detectLanguage; |
| | extractFunctions: typeof extractFunctions; |
| | extractClasses: typeof extractClasses; |
| | extractImports: typeof extractImports; |
| | extractExports: typeof extractExports; |
| | extractTodos: typeof extractTodos; |
| | extractAllPatterns: typeof extractAllPatterns; |
| | extractFromFiles: typeof extractFromFiles; |
| | toPatternMatches: typeof toPatternMatches; |
| | }; |
| | export default _default; |
| | |