| Server IP : 159.203.156.69 / Your IP : 216.73.217.172 Web Server : nginx/1.24.0 System : Linux main-ubuntu 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/tanviranik.com/node_modules/vinext/dist/shims/ |
Upload File : |
import React from "react";
//#region src/shims/image.d.ts
type StaticImageData = {
src: string;
height: number;
width: number;
blurDataURL?: string;
};
type ImageProps = {
src: string | StaticImageData;
alt: string;
width?: number;
height?: number;
fill?: boolean;
priority?: boolean;
quality?: number;
placeholder?: "blur" | "empty";
blurDataURL?: string;
loader?: (params: {
src: string;
width: number;
quality?: number;
}) => string;
sizes?: string;
className?: string;
style?: React.CSSProperties;
onLoad?: React.ReactEventHandler<HTMLImageElement>; /** @deprecated Use onLoad instead. Still supported for migration compat. */
onLoadingComplete?: (img: HTMLImageElement) => void;
onError?: React.ReactEventHandler<HTMLImageElement>;
onClick?: React.MouseEventHandler<HTMLImageElement>;
id?: string;
unoptimized?: boolean;
overrideSrc?: string;
loading?: "lazy" | "eager";
};
/**
* Build a `/_vinext/image` optimization URL.
*
* In production (Cloudflare Workers), the worker intercepts this path and uses
* the Images binding to resize/transcode on the fly. In dev, the Vite dev
* server handles it as a passthrough (serves the original file).
*/
declare function imageOptimizationUrl(src: string, width: number, quality?: number): string;
declare const Image: React.ForwardRefExoticComponent<ImageProps & React.RefAttributes<HTMLImageElement>>;
/**
* getImageProps — for advanced use cases (picture elements, background images).
* Returns the props that would be passed to the underlying <img> element.
*/
declare function getImageProps(props: ImageProps): {
props: React.ImgHTMLAttributes<HTMLImageElement>;
};
//#endregion
export { StaticImageData, Image as default, getImageProps, imageOptimizationUrl };
//# sourceMappingURL=image.d.ts.map