You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
750 B

7 months ago
  1. import type { OptionsGeneric, Modifier, Instance, VirtualElement } from "./types";
  2. import detectOverflow from "./utils/detectOverflow";
  3. declare type PopperGeneratorArgs = {
  4. defaultModifiers?: Array<Modifier<any, any>>;
  5. defaultOptions?: Partial<OptionsGeneric<any>>;
  6. };
  7. export declare function popperGenerator(generatorOptions?: PopperGeneratorArgs): <TModifier extends Partial<Modifier<any, any>>>(reference: Element | VirtualElement, popper: HTMLElement, options?: Partial<OptionsGeneric<TModifier>>) => Instance;
  8. export declare const createPopper: <TModifier extends Partial<Modifier<any, any>>>(reference: Element | VirtualElement, popper: HTMLElement, options?: Partial<OptionsGeneric<TModifier>>) => Instance;
  9. export { detectOverflow };