UNPKG

vineguard-utils

Version:

Shared utilities for VineGuard - AI-powered testing orchestration

29 lines 1.54 kB
import type { FileInfo, DirectoryInfo } from 'vineguard-types'; /** * Utility functions for file system operations */ export declare function fileExists(filePath: string): Promise<boolean>; export declare function readFileContent(filePath: string): Promise<string>; export declare function writeFileContent(filePath: string, content: string): Promise<void>; export declare function getFileInfo(filePath: string): Promise<FileInfo>; export declare function getDirectoryInfo(dirPath: string): Promise<DirectoryInfo>; export declare function findFiles(patterns: string[], options?: { cwd?: string; ignore?: string[]; absolute?: boolean; }): Promise<string[]>; export declare function findTestFiles(projectRoot: string): Promise<{ unitTests: string[]; e2eTests: string[]; integrationTests: string[]; }>; export declare function determineFileType(filePath: string): FileInfo['type']; export declare function getRelativePath(from: string, to: string): string; export declare function isSubPath(parent: string, child: string): boolean; export declare function ensureDirectory(dirPath: string): Promise<void>; export declare function getFileExtension(filePath: string): string; export declare function isJavaScriptFile(filePath: string): boolean; export declare function isTestFile(filePath: string): boolean; export declare function getTestFileForImplementation(implementationFile: string): string; export declare function getImplementationFileForTest(testFile: string): string | null; //# sourceMappingURL=file-utils.d.ts.map