/** * Check if a string is a URL * @param str String to check * @returns true if the string is a valid URL */ export declare function isUrl(str: string): boolean; /** * Fetch data from a URL and return as Buffer * @param url URL to fetch * @returns Buffer containing the fetched data */ export declare function fetchBuffer(url: string): Promise; /** * Create a directory * @param dir Directory path * @param recursive Create parent directories if they don't exist */ export declare function createDir(dir: string, recursive?: boolean): Promise; /** * Write a file * @param dir Directory path * @param filename Filename * @param data Data to write * @returns Path to the file */ export declare function writeFile(dir: string, filename: string, data: string | Buffer): Promise; /** * Read a JSON from file or URL and return its content * @param source Path to the file or URL * @returns Parsed JSON content */ export declare function loadJson(source: string): Promise; /** * Load data from a file or URL and return as Buffer * @param source Path to the file or URL * @returns Content as Buffer */ export declare function loadBuffer(source: string): Promise; /** * Get the filename without the extension * @param filePath Path to the file * @returns Filename without the extension */ export declare function fileNameWithoutExtension(filePath: string): string;