import { createPopper as defaultCreatePopper, Options as PopperOptions, VirtualElement } from "@popperjs/core"; import * as React from "react"; declare type Options = Partial & { createPopper?: typeof defaultCreatePopper; }; export declare function usePopper(referenceElement: Element | VirtualElement, popperElement: HTMLElement, options?: Options): { state: import("@popperjs/core").State | null; styles: { [key: string]: Partial; }; attributes: { [key: string]: { [key: string]: string; }; }; update: (() => Promise>) | null; forceUpdate: (() => void) | null; }; export {};