import type { Popup, Tooltip } from 'leaflet'; import { type LeafletContextInterface } from './context.js'; import type { LeafletElement, ElementHook } from './element.js'; import type { LayerProps } from './layer.js'; export declare type DivOverlay = Popup | Tooltip; export declare type SetOpenFunc = (open: boolean) => void; export declare type DivOverlayLifecycleHook = (element: LeafletElement, context: LeafletContextInterface, props: P, setOpen: SetOpenFunc) => void; export declare type DivOverlayHook = (useElement: ElementHook, useLifecycle: DivOverlayLifecycleHook) => (props: P, setOpen: SetOpenFunc) => ReturnType>; export declare function createDivOverlayHook(useElement: ElementHook, useLifecycle: DivOverlayLifecycleHook): (props: P, setOpen: SetOpenFunc) => ReturnType>;