import type { ComputedRef, InjectionKey, Ref } from 'vue'; import type { ChildrenTrackerInjectionKey } from '../../use'; export interface JumpLinksItemRegistration { /** The li element of the item, used to sort the items in document order */ el(): HTMLElement | null; /** Resolves the element the item scrolls to and spies on */ resolveTarget(): HTMLElement | null; } export declare const JumpLinksKey: ChildrenTrackerInjectionKey; export interface JumpLinksProvide { /** Whether a scrollable element is spied on */ spying: ComputedRef; /** Resolved scrollable element */ scrollableHTMLElement: Readonly>; /** Whether the item is the active one */ isActive(item: JumpLinksItemRegistration): boolean; /** Scrolls to the target of the clicked item and makes it active */ onItemClick(item: JumpLinksItemRegistration, event: MouseEvent, href: string | undefined): void; } export declare const JumpLinkInjectionKey: InjectionKey; //# sourceMappingURL=common.d.ts.map