import { FileStream } from "jazz-tools"; /** * Creates an ImageDefinition from an image File or Blob with built-in UX features. * * This function creates a specialized CoValue for managing images in Jazz applications. * It supports blurry placeholders, built-in resizing, and progressive loading patterns. * * @returns Promise that resolves to an ImageDefinition * * @example * ```ts * import { createImage } from "jazz-tools/media"; * * // Create an image from a file input * async function handleFileUpload(event: React.ChangeEvent) { * const file = event.target.files?.[0]; * if (file) { * // Creates ImageDefinition with a blurry placeholder, limited to 1024px * // on the longest side, and multiple resolutions automatically * const image = await createImage(file, { * owner: me._owner, * maxSize: 1024, * placeholder: "blur", * progressive: true, * }); * * // Store the image in your application data * me.profile.image = image; * } * } * ``` */ export declare const createImage: (source: Blob | File, options?: import("../create-image-factory").CreateImageOptions) => Promise<{ readonly original: FileStream; } & { readonly original: import("jazz-tools").MaybeLoaded; readonly originalSize: [number, number]; readonly placeholderDataURL: string | undefined; readonly progressive: boolean; } & { readonly [key: string]: import("jazz-tools").MaybeLoaded; } & import("jazz-tools").CoMap>; //# sourceMappingURL=browser.d.ts.map