cloudflare
Version:
The official TypeScript library for the Cloudflare API
34 lines • 1.14 kB
TypeScript
import { APIResource } from "../../../core/resource.js";
import { APIPromise } from "../../../core/api-promise.js";
import { RequestOptions } from "../../../internal/request-options.js";
export declare class BaseBlobs extends APIResource {
static readonly _key: readonly ['images', 'v1', 'blobs'];
/**
* Download an image from CF Images. For most images this will be the originally
* uploaded file. For larger images it can be a near-lossless version of the
* original.
*
* @example
* ```ts
* const blob = await client.images.v1.blobs.get('image_id', {
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* });
*
* const content = await blob.blob();
* console.log(content);
* ```
*/
get(imageID: string, params: BlobGetParams, options?: RequestOptions): APIPromise<Response>;
}
export declare class Blobs extends BaseBlobs {
}
export interface BlobGetParams {
/**
* Account identifier tag.
*/
account_id: string;
}
export declare namespace Blobs {
export { type BlobGetParams as BlobGetParams };
}
//# sourceMappingURL=blobs.d.ts.map