/**
* Intersection Observer Action for Scroll-Triggered Animations
*
* Svelte action that triggers animations when elements scroll into view.
* Embodies "the tool recedes" - animation feels natural, not forced.
*
* Usage:
*
*
* Or with the helper:
*
visible = true}>
*/
export type InViewOptions = {
/** Percentage of element visible before triggering (0-1) */
threshold?: number;
/** Root margin for earlier/later trigger */
rootMargin?: string;
/** Only trigger once (default: true) */
once?: boolean;
};
/**
* Svelte action for intersection observer
*/
export declare function inview(node: HTMLElement, options?: InViewOptions): {
destroy(): void;
update(newOptions: InViewOptions): void;
};
/**
* Helper to create a reactive visible state
*/
export declare function createInViewState(): {
readonly visible: boolean;
onInView(): void;
reset(): void;
};