import { ImageResponse } from '@vercel/og'; import { DirectoryPath, FilePath, URLPath } from './path.js'; type TempType = { path: DirectoryPath; type: 'dir'; } | { path: FilePath; type: 'file'; }; export declare class FileUtils { path: FilePath; tempPathList: TempType[]; constructor(path: FilePath); getTemp: (extension?: string) => FilePath; getTempList: () => DirectoryPath; tempCleanup: () => Promise; writeFile: (data: ArrayBuffer, path: FilePath) => Promise; tempImg: (img: ImageResponse) => Promise; temp: (data: ArrayBuffer) => Promise; saveImg: (img: ImageResponse) => Promise; save: (data: ArrayBuffer) => Promise; saveFetch: (url: URLPath, init?: RequestInit) => Promise; } export {}; //# sourceMappingURL=file.d.ts.map