/** * Global runtime augmentation for the Imagely Gallery slideshow in the Visual * Builder preview. * * Imagely/NextGEN ships the Slick carousel as a jQuery plugin that augments the * jQuery prototype at runtime. We model it with declaration merging so call * sites need no casts, and mark `slick` optional because it only exists once the * Slick library has loaded. The data shapes it references (`SlickOptions`, * `SlickCommand`) live in `@divi/types` under * `ModuleLibrary.Components.ImagelyGallery.Script`. * * On the front end NextGEN's own runtime boots Slick, so this is only consumed * by the builder preview path (`edit.tsx` -> `init-slideshows`). * * @since ?? */ import { type ModuleLibrary } from '@divi/types'; declare global { interface JQuery { slick?: { (options: ModuleLibrary.Components.ImagelyGallery.Script.SlickOptions): JQuery; (command: ModuleLibrary.Components.ImagelyGallery.Script.SlickCommand): JQuery; }; } }