/**
* IIFE entry (dist/tyrekick.js, global `Tyrekick`). Re-exports the public API and
* auto-initialises from data-* attributes on its own
*
* For framework/async loaders (next/script, dynamic import, bundlers) where
* `document.currentScript` is null, set a global instead:
*
*
*/
export { init, destroy } from "./index";
import type { TyrekickConfig } from "./types";
/**
* Resolve the auto-init config in priority order:
* 1. `window.tyrekickConfig` — an explicit global; the reliable path for
* framework/async loaders where `document.currentScript` is null.
* 2. this script's own data-* attributes — the classic synchronous