/** * React adapter — a tiny hook wrapper around PencereViewer. * * Intentionally zero JSX: the entry exports only hooks so consumers * can render their own trigger elements. This keeps the adapter * framework-version agnostic and free of peer-dep drama. */ import type { MutableRefObject } from "react"; import { PencereViewer } from "../dom/viewer.mjs"; import type { PencereViewerOptions } from "../dom/viewer.mjs"; import type { Item } from "../types.mjs"; export interface UseLightboxReturn { viewer: MutableRefObject | null>; open: (index?: number) => void; close: () => void; } /** * `useLightbox(options)` constructs a `PencereViewer` on mount and * destroys it on unmount. The returned `open` / `close` callbacks * are stable and can be passed to click handlers. * * Options are captured at mount time — changes to the items array * should be pushed via `viewer.current?.core.setItems(...)`. */ export declare function useLightbox(options: PencereViewerOptions): UseLightboxReturn;