import type { CSSProperties, ReactNode } from 'react'; import type { TransloaditImageModel } from '../index.ts'; import type { ImageAttributes, ImageLoadingProps } from './imageAttributes.ts'; import type { StorageImageCatalog } from './layout.ts'; import type { TransloaditRedirectImageProps } from './server.tsx'; /** Augmented by the CLI-generated transloadit-images.d.ts; an absent file keeps string sources. */ export interface RegisteredStorageImages { } /** The conventional catalog supplies intrinsic dimensions even without generated declarations. */ export type StorageImageProps = TransloaditRedirectImageProps; /** Storage catalog paths or explicit custom-template inputs; workspace can use project defaults. */ export type ImageProps = { workspace?: string; } & (({ storage: true; template?: never; } & StorageImageProps) | ({ storage?: never; template: string; } & TransloaditRedirectImageProps)); /** The server implementation selects Storage Built-ins or an explicitly trusted custom Template. */ export declare function Image(_props: ImageProps): ReactNode; interface ImagePresentationProps extends Omit { alt: string; /** Optional client-side image-load fallback. Does not replace the server-rendered picture. */ errorFallback?: ReactNode; /** @experimental Change after signing in to reset a failed image with stable URLs. */ retryKey?: string | number; /** Explicitly handles a display box whose aspect ratio differs from the source image. */ objectFit?: CSSProperties['objectFit']; /** Expected rendered widths. Browsers otherwise assume `100vw` for width-based source sets. */ sizes?: string; } /** Layout and loading without assuming how the caller supplies source dimensions. */ export type TransloaditImageLayoutProps = ImagePresentationProps & ImageLoadingProps; /** Serializable native image attributes and layout shared by both Next.js renderers. */ export type TransloaditImagePresentationProps = TransloaditImageLayoutProps & { height: number; width: number; }; /** Props for rendering an already-signed framework-neutral image model. */ export type TransloaditPictureProps = TransloaditImagePresentationProps & { model: TransloaditImageModel; /** Already decoded on the server; no ThumbHash decoder enters the client graph. */ blurDataURL?: string; }; /** Renders immediately discoverable, browser-selected candidates with a JPEG fallback. */ export declare function TransloaditPicture(props: TransloaditPictureProps): ReactNode; export {}; //# sourceMappingURL=index.d.ts.map