UNPKG

@hpbyte/h-codex-core

Version:

Core indexing and search functionality for h-codex

25 lines (24 loc) 873 B
import type { FileExplorerConfig } from '../../types'; export declare class FileExplorer { private config; constructor(config?: FileExplorerConfig); discover(folderPath: string): Promise<string[]>; private loadIgnorePatterns; private parseIgnoreFile; validateFile(filePath: string): Promise<boolean>; createBatches<T>(items: T[], batchSize: number): T[][]; processInBatches<T, R>(items: T[], processor: (item: T) => Promise<R>, options?: { batchSize: number; maxConcurrency: number; }): Promise<{ results: R[]; errors: Array<{ item: T; error: Error; }>; }>; getFileExtension(filePath: string): string; isFileSupported(filePath: string): boolean; updateConfig(newConfig: Partial<FileExplorerConfig>): void; } export declare const fileExplorer: FileExplorer;