import type { Format, PersistConfig } from '@code-pushup/models'; export declare function readTextFile(filePath: string): Promise; export declare function readJsonFile(filePath: string): Promise; export declare function fileExists(filePath: string): Promise; export declare function directoryExists(filePath: string): Promise; export declare function ensureDirectoryExists(baseDir: string): Promise; export declare function removeDirectoryIfExists(dir: string): Promise; export declare function createReportPath({ outputDir, filename, format, suffix, }: Pick, 'filename' | 'outputDir'> & { format: Format; suffix?: string; }): string; export declare function pluginWorkDir(slug: string): string; export type CrawlFileSystemOptions = { directory: string; pattern?: string | RegExp; fileTransform?: (filePath: string) => Promise | T; }; export declare function crawlFileSystem(options: CrawlFileSystemOptions): Promise; export declare function findNearestFile(fileNames: string[], cwd?: string): Promise; export declare function findLineNumberInText(content: string, pattern: string): number | null; export declare function filePathToCliArg(filePath: string): string; export declare function projectToFilename(project: string): string; type SplitFilePath = { folders: string[]; file: string; }; export declare function splitFilePath(filePath: string): SplitFilePath; export declare function truncatePaths(paths: string[]): string[]; export {};