import { type MouseEvent, type PropsWithChildren } from 'react';
export interface MenuProps extends PropsWithChildren {
    verticalOffset?: number;
    horizontalOffset?: number;
    edgeOffset?: number;
    renderButton: (props: {
        onOpen: (event: MouseEvent<HTMLElement>) => void;
    }) => JSX.Element;
    backgroundProps?: Partial<{
        className?: string;
    }>;
}
interface MenuContext {
    close: () => void;
}
export declare function Menu({ verticalOffset, horizontalOffset, edgeOffset, children, renderButton, backgroundProps, }: MenuProps): JSX.Element | null;
export declare function useMenu(): MenuContext;
export {};
