repomix
Version:
A tool to pack repository contents to single file for AI consumption
16 lines (15 loc) • 728 B
TypeScript
import type { RepomixConfigMerged } from '../../config/configSchema.js';
import type { RepomixProgressCallback } from '../../shared/types.js';
import { type FileSkipReason } from './fileRead.js';
import type { RawFile } from './fileTypes.js';
export interface SkippedFileInfo {
path: string;
reason: FileSkipReason;
}
export interface FileCollectResults {
rawFiles: RawFile[];
skippedFiles: SkippedFileInfo[];
}
export declare const collectFiles: (filePaths: string[], rootDir: string, config: RepomixConfigMerged, progressCallback?: RepomixProgressCallback, deps?: {
readRawFile: (filePath: string, maxFileSize: number) => Promise<import("./fileRead.js").FileReadResult>;
}) => Promise<FileCollectResults>;