import type { DOMAttributes, ImgHTMLAttributes } from 'react';
/** Native attributes that can cross the server-rendering boundary, without caller-owned URLs. */
export interface ImageAttributes extends Omit, keyof DOMAttributes | 'defaultChecked' | 'defaultValue' | 'inlist' | 'loading' | 'src' | 'srcSet' | 'suppressContentEditableWarning' | 'suppressHydrationWarning' | 'tw'> {
inlist?: string;
[attribute: `data-${string}`]: string | number | boolean | null | undefined;
}
/** Snapshots only native, serializable attributes before suspension or rendering. */
export declare function snapshotImageAttributes(props: ImageAttributes): ImageAttributes & {
alt: string;
};
/** A preload is eager; explicitly lazy images must not issue preload requests. */
export type ImageLoadingProps = {
/** @deprecated Use preload; this alias remains for one release. */
priority?: boolean;
} & ({
loading?: 'eager';
preload?: boolean;
} | {
loading?: 'eager' | 'lazy';
preload?: false;
priority?: false;
});
/** Retains runtime validation for JavaScript callers as well as the discriminated public type. */
export declare function snapshotImageLoading({ loading, priority, preload, }: {
loading?: 'eager' | 'lazy';
priority?: boolean;
preload?: boolean;
}): ImageLoadingProps;
//# sourceMappingURL=imageAttributes.d.ts.map