| 11 | const execAsync = promisify(exec); |
| 12 | |
| 13 | export interface ExtractionResult { |
| 14 | text: string; |
| 15 | metadata: { |
| 16 | content_type: string; |
| 17 | char_count: number; |
| 18 | estimated_tokens: number; |
| 19 | extraction_method: string; |
| 20 | [key: string]: any; |
| 21 | }; |
| 22 | } |
| 23 | |
| 24 | function estimateTokens(text: string): number { |
| 25 | return Math.ceil(text.length / 4); |
nothing calls this directly
no outgoing calls
no test coverage detected