import type { Options, Slider } from './index.js'; /** * @param options Options. * @param options.duration Time of opening and closing, ms. * @param options.punch How much the speed of the opening * counts as speed for the effects. * 0: the image grows, and no more. * @param options.slider Options for the * slider in the lightbox. * @param options.labels `close`, `prev`, * `next`, `dialog`. */ export declare function lightbox({ duration, punch, slider: inner, labels, }?: { duration?: number; punch?: number; slider?: Options; labels?: Record; }): (slider: Slider) => { name: string; slides: () => void; /** * @param index Slide to open the lightbox with. */ open: (index: number) => void; /** Lets the image go back to its slide. */ close: () => void; /** The slider in the lightbox, while it is open. */ readonly slider: Slider | null; /** How far the lightbox is open, 0 to 1. */ readonly progress: number; destroy(): void; };