code-graph-generator
Version:
Generate Json Object of code that can be used to generate code-graphs for JavaScript/TypeScript/Range projects
24 lines (23 loc) • 758 B
TypeScript
/**
* Checks if a file exists at the given path.
*/
export declare function fileExists(filePath: string): Promise<boolean>;
/**
* Ensures a directory exists, creating it if necessary.
*/
export declare function ensureDir(dirPath: string): Promise<void>;
/**
* Reads a file with appropriate strategy based on size.
*/
export declare function readFile(filePath: string): Promise<string>;
/**
* Logger utility with configurable debug level.
*/
export declare const logger: {
debug: (message: string, ...args: any[]) => void;
info: (message: string, ...args: any[]) => void;
warn: (message: string, ...args: any[]) => void;
error: (message: string, ...args: any[]) => void;
_debug: boolean;
setDebug: (debug: boolean) => void;
};