@fefade/svelte
Version:
Reusable Svelte UI components powered by the FEFADE core system.
15 lines (14 loc) • 618 B
TypeScript
import type { ElementReferenceType, SectionType } from "@fefade/core/types";
export default function scrollSectionState(): {
set(sections: ElementReferenceType[]): void;
setCurrentReference(reference: string): void;
register(node: HTMLElement, reference: string): void;
getAll(): ElementReferenceType[];
getCurrentReference(): string;
getByReference(reference: string): ElementReferenceType | undefined;
scrollTo(reference: string): void;
getSections(): SectionType[];
clear(): void;
unregister(reference: string): void;
};
export declare function getSections(): SectionType[];