UNPKG

@noanswer/context-compose

Version:

Orchestrate complex AI interactions with Context Compose. A powerful CLI and server for building, validating, and managing context for large language models using the Model Context Protocol (MCP).

20 lines (19 loc) 813 B
/** * Checks if a file or directory exists. * @param filePath - The path to check. * @returns A promise that resolves to true if the path exists, false otherwise. */ export declare function fileExists(filePath: string): Promise<boolean>; /** * Copies a directory recursively from a source to a destination. * @param src - The source directory path. * @param dest - The destination directory path. * @returns A promise that resolves to an array of copied file paths. */ export declare function copyDirectory(src: string, dest: string): Promise<string[]>; /** * Creates a timestamped backup of a directory. * @param dirPath - The directory to back up. * @returns A promise that resolves to the path of the backup directory. */ export declare function backupDirectory(dirPath: string): Promise<string>;