import type { PartialRequired, Sticky, StickyOptions } from './sticky'; export default class StickyImpl implements Sticky { element: HTMLElement; options: PartialRequired; private $$offsetTop; private readonly $$onUpdate; private readonly $$restoreStyles; private readonly $$sentinel; private $$resizeObserver?; private $$stuckObserver?; private $$destroyed; constructor(element: HTMLElement, options?: StickyOptions, activate?: boolean, onUpdate?: () => void); get offsetTop(): number; set offsetTop(value: number); /** * 固定線が動くたびに監視域を張り直す。sentinel がその線より上へ * 抜けていれば、要素は線に貼り付いている */ private watchStuckState; update(): void; destroy(): void; }