import { type Result } from '../types/index.js'; /** * Download a file from URL to destination path */ export declare function downloadFile(url: string, dest: string): Promise; /** * Make a file executable (Unix-like systems only) */ export declare function makeExecutable(filePath: string): Promise; /** * Create a temporary file with content */ export declare function createTempFile(content: string, extension?: string): Promise; /** * Delete a temporary file (ignores errors) */ export declare function deleteTempFile(filePath: string): Promise; /** * Read Dockerfile from path or use provided content * * Consolidates duplicate Dockerfile reading logic across tools. * Handles both direct content and file path inputs. * * @param options - Either path to Dockerfile or content directly * @returns Result containing Dockerfile content * * @example * ```typescript * // Read from file path * const result = await readDockerfile({ path: './Dockerfile' }); * if (!result.ok) return result; * const content = result.value; * * // Use provided content * const result2 = await readDockerfile({ content: 'FROM node:20\n...' }); * ``` */ export declare function readDockerfile(options: { path?: string; content?: string; }): Promise>; //# sourceMappingURL=file-utils.d.ts.map