/** * @template T * @template {Record} A * @typedef {import("svelte/action").ActionReturn} ActionReturn */ /** * @typedef {CustomEvent} IntersectionEvent * @typedef {{ "on:intersectionchanged"?: (e: IntersectionEvent) => void }} Attributes */ /** * Observe all changes to the intersection of the given element with the target element, (by default the viewport). * * @param {Element} node * @param {{ root?: Element | Document | null, rootMargin?: string }} [params] * @returns {ActionReturn} */ export function intersectionObserver(node: Element, params?: { root?: Element | Document | null; rootMargin?: string; }): ActionReturn; /** * */ export type ActionReturn> = import("svelte/action").ActionReturn; export type IntersectionEvent = CustomEvent; export type Attributes = { "on:intersectionchanged"?: (e: IntersectionEvent) => void; };