import type { ImgHTMLAttributes, ReactElement, SourceHTMLAttributes } from 'react'; /** * Responsive breakpoints, in pixels, used by opt-in on-demand image transforms. * Static builds publish one WebP per source by default and do not use this list. */ export declare const DEFAULT_DEVICE_WIDTHS: readonly [640, 750, 828, 1080, 1200, 1920, 2048, 3840]; /** Parameters supplied to a custom image CDN loader. */ export interface ImageLoaderProps { src: string; width?: number; quality?: number; } /** Returns the URL served by an image CDN or other external image service. */ export type ImageLoader = (props: ImageLoaderProps) => string; interface ImageBaseProps extends Omit, 'alt' | 'fetchPriority' | 'height' | 'loading' | 'src' | 'width'> { /** Public image URL. Local PNG/JPEG URLs are rewritten to their build-time WebP output. */ src: string; /** Required accessible alternative text. Use an empty string for decorative images. */ alt: string; /** Keep local source URLs unchanged. Remote URLs are unchanged by default. */ unoptimized?: boolean; /** Eager-load and prioritize a largest-contentful-paint image. */ priority?: boolean; /** Fill the positioned parent while retaining browser-native image behavior. */ fill?: boolean; /** Generate the URL through an image CDN without enabling Ruvyxa runtime transforms. */ loader?: ImageLoader; /** Passed to a custom loader; local build output always uses configured build quality. */ quality?: number; /** Resize this same-origin public image through Ruvyxa's runtime endpoint. */ dynamic?: boolean; /** Overrides the default lazy loading when the image is not priority. */ loading?: 'eager' | 'lazy'; /** Overrides the default fetch priority when the image is not priority. */ fetchPriority?: 'auto' | 'high' | 'low'; } export type ImageProps = (ImageBaseProps & { fill?: false; /** Intrinsic width prevents cumulative layout shift. */ width: number; /** Intrinsic height prevents cumulative layout shift. */ height: number; }) | (ImageBaseProps & { fill: true; width?: number; height?: number; }); /** A browser-native source used for responsive art direction. */ export interface PictureSource extends Omit, 'srcSet'> { srcSet: string; /** Do not rewrite local PNG/JPEG URLs in this source set. */ unoptimized?: boolean; } export type PictureProps = ImageProps & { /** Sources evaluated by the browser before the fallback image. */ sources: readonly PictureSource[]; }; /** * Render an accessible image backed by Ruvyxa's static WebP build output. * * `fill` requires the parent to establish a CSS positioning context, matching * native absolute-positioned image behavior without a framework wrapper. */ export declare function Image({ src, alt, width, height, unoptimized, priority, fill, loader, quality, dynamic, decoding, loading, fetchPriority, sizes, srcSet, style, ...attributes }: ImageProps): ReactElement; /** * Render native `` sources for art direction with the same static * WebP URL rewriting as `Image`. No responsive variants are generated. */ export declare function Picture({ sources, ...image }: PictureProps): ReactElement; export {}; //# sourceMappingURL=image.d.ts.map