@bagsfm/bags-sdk
Version:
TypeScript SDK for Bags
18 lines • 535 B
TypeScript
export type ImageInput = File | Blob | Buffer | {
value: Buffer;
options: {
filename: string;
contentType: string;
};
} | any;
export interface ImageFormDataOptions {
filename?: string;
contentType?: string;
}
export declare function prepareImageForFormData(image: ImageInput, options?: ImageFormDataOptions): Promise<{
buffer: Buffer;
filename: string;
contentType: string;
}>;
export declare function detectImageInputType(image: ImageInput): string;
//# sourceMappingURL=image.d.ts.map