export type WaypointState = { el: Element | undefined; going: Going | undefined; direction: Direction | undefined; }; export declare enum Going { In = "IN", Out = "OUT" } export declare enum Direction { Up = "UP", Down = "DOWN", Left = "LEFT", Right = "RIGHT" } type Callback = (state: WaypointState) => void; export declare const createObserver: (options?: IntersectionObserverInit) => (callback: Callback) => IntersectionObserver; export {};