| 182 | * Defines the interface that all file loader classes must implement. |
| 183 | */ |
| 184 | export interface FileLoaderInterface { |
| 185 | /** |
| 186 | * Aggregates the page content obtained from loadPages into a single string. |
| 187 | * @param pages Array of DocumentPage objects. |
| 188 | * @returns Promise that returns the aggregated text content. |
| 189 | */ |
| 190 | aggregateContent: (pages: DocumentPage[]) => Promise<string>; |
| 191 | |
| 192 | attachDocumentMetadata?: (filePath: string) => Promise<Record<string, any>>; |
| 193 | |
| 194 | /** |
| 195 | * Loads file content based on the file path and splits it into logical pages/chunks. |
| 196 | * @param filePath Full path of the file. |
| 197 | * @returns Promise that returns an array containing DocumentPage objects. |
| 198 | */ |
| 199 | loadPages: (filePath: string) => Promise<DocumentPage[]>; |
| 200 | } |
nothing calls this directly
no outgoing calls
no test coverage detected