@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
26 lines (25 loc) • 947 B
TypeScript
/**
* Path Resolution Utility for CLI
*
* Converts relative file paths to absolute paths while preserving URLs.
* This ensures consistent file access regardless of the current working directory.
*/
/**
* Resolve a file path to an absolute path.
*
* - Relative paths (./images/chart.png, ../data/report.pdf) are resolved
* against the current working directory
* - Absolute paths (/home/user/file.txt, C:\\Users\\file.txt) are returned unchanged
* - URLs (http://..., https://...) are returned unchanged
*
* @param filePath - The file path to resolve
* @returns Resolved absolute path, or original URL/string
*/
export declare function resolveFilePath(filePath: string): string;
/**
* Resolve multiple file paths to absolute paths.
*
* @param filePaths - Array of file paths to resolve
* @returns Array of resolved absolute paths (or URLs unchanged)
*/
export declare function resolveFilePaths(filePaths: string[]): string[];