amis-rpc-design/node_modules/react-pro-sidebar/dist/hooks/usePopper.d.ts
2023-10-07 19:42:30 +08:00

13 lines
399 B
TypeScript

import React from 'react';
import { createPopper } from '@popperjs/core';
interface PopperOptions {
level: number;
buttonRef: React.RefObject<HTMLAnchorElement>;
contentRef: React.RefObject<HTMLDivElement>;
}
interface PopperResult {
popperInstance?: ReturnType<typeof createPopper>;
}
export declare const usePopper: (options: PopperOptions) => PopperResult;
export {};