import type { ConfigurableWindow } from "../_configurable"; export interface IntersectionObserverOptions extends ConfigurableWindow { /** * The Element or Document whose bounds are used as the bounding box when testing for intersection. */ root?: HTMLElement | SVGElement | undefined | null; /** * A string which specifies a set of offsets to add to the root's bounding_box when calculating intersections. */ root_margin?: string; /** * Either a single number or an array of numbers between 0.0 and 1. */ threshold?: number | number[]; } /** * Detects that a target element's visibility. * * @param target * @param callback * @param options */ export declare function intersection_observer(target: HTMLElement | SVGElement | undefined | null, callback: IntersectionObserverCallback, options?: IntersectionObserverOptions): { is_supported: import("svelte/store").Readable; cleanup: () => void; } | undefined; export { intersection_observer as intersectionObserver };