import type { FloatingContext } from "./use-floating.svelte.js"; interface UseFocusOptions { /** * Whether the Hook is enabled, including all internal Effects and event * handlers. * @default true */ enabled?: boolean; /** * Whether the open state only changes if the focus event is considered * visible (`:focus-visible` CSS selector). * @default true */ visibleOnly?: boolean; } declare function useFocus(context: FloatingContext, options?: UseFocusOptions): { readonly reference: { onpointerdown?: undefined; onmouseleave?: undefined; onfocus?: undefined; onblur?: undefined; } | { onpointerdown: (event: PointerEvent) => void; onmouseleave(): void; onfocus: (event: FocusEvent) => void; onblur: (event: FocusEvent) => void; }; }; export type { UseFocusOptions }; export { useFocus };