import type { HTMLAttributes } from "svelte/elements";
declare const ACTIVE_KEY = "active";
declare const SELECTED_KEY = "selected";
interface ExtendedUserProps {
[ACTIVE_KEY]?: boolean;
[SELECTED_KEY]?: boolean;
}
interface ElementProps {
reference?: HTMLAttributes;
floating?: HTMLAttributes;
item?: HTMLAttributes | ((props: ExtendedUserProps) => HTMLAttributes);
}
interface UseInteractionsReturn {
getReferenceProps: (userProps?: HTMLAttributes) => Record;
getFloatingProps: (userProps?: HTMLAttributes) => Record;
getItemProps: (userProps?: Omit, "selected" | "active"> & ExtendedUserProps) => Record;
}
declare function useInteractions(propsList?: Array): UseInteractionsReturn;
export type { UseInteractionsReturn, ElementProps, ExtendedUserProps };
export { useInteractions };