locatai-ts
Version:
Enterprise-grade AI-powered element locator for Selenium WebDriver - TypeScript implementation
18 lines • 667 B
TypeScript
/**
* Ensures a directory exists
* @param dirPath Directory path to create
*/
export declare function ensureDir(dirPath: string): Promise<void>;
/**
* Reads JSON from a file, returns default value if the file doesn't exist
* @param filePath Path to the JSON file
* @param defaultValue Default value to return if file doesn't exist
*/
export declare function readJson<T>(filePath: string, defaultValue: T): Promise<T>;
/**
* Writes data as JSON to a file
* @param filePath Path to write the JSON file
* @param data Data to write
*/
export declare function writeJson<T>(filePath: string, data: T): Promise<void>;
//# sourceMappingURL=JsonFileHelpers.d.ts.map