UNPKG

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