UNPKG

@thecodingwhale/cv-processor

Version:

CV Processor to extract structured data from PDF resumes using TypeScript

31 lines (30 loc) 751 B
import { AIProvider, TokenUsageInfo } from '../types/AIProvider'; /** * Class for extracting text from PDFs using AI models */ export declare class AITextExtractor { private aiProvider; private tokenUsage; /** * Initialize the AI Text Extractor */ constructor(aiProvider: AIProvider); /** * Extract text from PDF file using AI */ extractTextFromPDF(pdfPath: string): Promise<string>; private cleanText; private buildPrompt; /** * Add token usage from a response to the running total */ private addTokenUsage; /** * Get token usage statistics */ getTokenUsage(): TokenUsageInfo; /** * Reset token usage statistics */ resetTokenUsage(): void; }