/** Options for {@link fileBlob}. */ export interface FileBlobOptions { /** MIME type stamped on the Blob (becomes the multipart part's Content-Type). */ type?: string; /** Reject (before any upload) when the file is larger than this many bytes. */ maxBytes?: number; /** Friendly name for the size-limit error message (e.g. "Image"). */ label?: string; } /** * A **file-backed** `Blob` for streaming multipart uploads. Backed by the file * on disk via `fs.openAsBlob`, so the bytes are NOT read into memory — `fetch` * streams them from disk as it sends the request body. Use in place of * `new Blob([readFileSync(path)])` when building `FormData` for an upload. * * @throws if the file can't be opened, or (when `maxBytes` is set) is too large. */ export declare function fileBlob(path: string, opts?: FileBlobOptions): Promise; /** * Read the first `bytes` of a file (for magic-byte / header sniffing — image * dimensions, file-type detection) WITHOUT loading the whole file. Returns only * as many bytes as were actually read (a short file yields a short buffer). */ export declare function readFileHead(path: string, bytes: number): Promise; export * from './output.js'; //# sourceMappingURL=index.d.ts.map