declare module "markdown-it-footnote"; declare module "turndown-plugin-gfm"; // htmx is loaded as a classic script on every page and used from TS for // partial swaps (rendering-ownership rule: templ renders, JS swaps). interface HtmxAjaxOptions { target?: string; swap?: string; values?: Record; headers?: Record; } interface Window { htmx: { ajax( method: string, url: string, options?: HtmxAjaxOptions, ): Promise; process(element: Element): void; }; }