UNPKG

next-img-base64ify

Version:

A lightweight and efficient package for Base64 encoding and decoding images and files in Next.js and React applications.

18 lines (16 loc) 452 B
interface Base64Type { data: string | null; isLoading: boolean; isError: boolean; isValidSize: boolean; } interface AllowSizes { maxSize: number; minSize: number; } interface _64ifyOptions { allowedTypes: string[]; allowedSizes: AllowSizes; } declare const _64ify: (file: File, { allowedTypes, allowedSizes }: _64ifyOptions) => Promise<Base64Type>; export { type AllowSizes, type Base64Type, _64ify };