import { GalleryOptions } from './gallery.types';
/**
* Headless gallery / lightbox. Thumbnails open a navigable overlay with
* prev/next, keyboard support, focus trapping and scroll locking.
*
* Markup:
* ```html
*
*
*
*
*
![]()
*
*
*
*
*
* ```
*/
export declare class Gallery {
private readonly root;
private readonly lightbox;
private readonly image;
private readonly items;
private readonly loop;
private readonly closeOnEscape;
private readonly lockScroll;
private readonly focusTrap;
private open;
private currentIndex;
private previouslyFocused;
private cleanups;
constructor(root: HTMLElement, options?: GalleryOptions);
private srcOf;
private altOf;
private init;
private bind;
private readonly onKeydown;
private show;
openAt(index: number): void;
close(): void;
next(): void;
prev(): void;
get index(): number;
get isOpen(): boolean;
on(event: string, handler: (event: E) => void): () => void;
destroy(): void;
}