import * as React$1 from 'react'; declare function getImageDimensions(aspectRatio?: string, defaultWidth?: number): { width: number; height: number; }; declare function loadImageDimensions(src: string): Promise<{ width: number; height: number; }>; declare function getRealImageDimensions(src: string, aspectRatio?: string): Promise<{ width: number; height: number; }>; type PhotoSwipeImageData = { alt?: string; caption?: string; height: number; src: string; width: number; }; /** * @deprecated Prefer `FigureLightboxHost` + `FigureLightboxTrigger`. Kept for external consumers. * * Migration: (1) mount `FigureLightboxHost` once at the app root; (2) replace each * `PhotoSwipeImage` with a `FigureLightboxTrigger` (button semantics + connected gallery); * (3) let `FigureLightboxHost` collect the triggers and open the gallery * (no per-component state). Preserve existing aspect-ratio logic when porting * image grids. Tracked in issue #236. */ type PhotoSwipeGalleryProps = { children: React.ReactNode; className?: string; galleryId?: string; /** Unused — images are read from trigger data attributes at click time. */ images?: PhotoSwipeImageData[]; }; /** * Layout wrapper for legacy media blocks. Click handling is delegated to FigureLightboxHost. */ declare function PhotoSwipeGallery({ children, className, galleryId, images: _images, }: PhotoSwipeGalleryProps): React$1.JSX.Element; /** @deprecated Prefer FigureLightboxTrigger. */ type PhotoSwipeImageProps = { alt: string; caption?: string; children?: React.ReactNode; className?: string; galleryId?: string; height?: number; index: number; noCursor?: boolean; src: string; width?: number; }; /** @deprecated Prefer FigureLightboxTrigger. */ declare function PhotoSwipeImage({ src, alt, index: _index, width, height, caption, className, children, noCursor, galleryId, }: PhotoSwipeImageProps): React$1.JSX.Element; /** @deprecated Mount FigureLightboxHost; it opens the gallery. */ declare function usePhotoSwipe(_images: PhotoSwipeImageData[]): { openPhotoSwipe: () => void; closePhotoSwipe: () => void; photoSwipe: null; }; export { PhotoSwipeGallery as a, PhotoSwipeImage as c, getRealImageDimensions as e, getImageDimensions as g, loadImageDimensions as l, usePhotoSwipe as u }; export type { PhotoSwipeImageData as P, PhotoSwipeGalleryProps as b, PhotoSwipeImageProps as d };