react-photoswipe-gallery
Version:
React component wrapper around PhotoSwipe
15 lines (14 loc) • 388 B
TypeScript
/**
* A hook that gives you access to provided methods for more advanced usage
*/
export declare const useGallery: () => {
/**
* Function that opens the gallery at the provided index
*/
open: (i: number) => void;
/**
* Function that closes the gallery
*/
close: () => void;
};
export declare const useApiContext: () => import("./types").InternalAPI;