import type { LiveComponent, LiveElement } from '@use-gpu/live'; import type { ColorSpace, DataTexture } from '@use-gpu/core'; import { FetchAPIOptions } from './fetch.d.mts'; type LoadedImage = { bitmap?: ImageBitmap; data?: DataTexture; format: GPUTextureFormat; colorSpace: ColorSpace; }; export type ImageLoaderProps = { /** URL For image */ url?: string; /** fetch() API options */ options?: FetchAPIOptions; /** Type hint (extension or mime type) */ format?: string; /** Pixel format override for texture */ pixelFormat?: GPUTextureFormat; /** Color space */ colorSpace?: ColorSpace; /** Premultiply alpha */ premultiply?: boolean; /** Leave empty to yeet image instead. */ render?: (image: LoadedImage) => LiveElement; children?: (image: LoadedImage) => LiveElement; }; export declare const ImageLoader: LiveComponent; export {};