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
926 B
9 lines
926 B
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<E, P> = (element: LeafletElement<E>, context: LeafletContextInterface, props: P, setOpen: SetOpenFunc) => void; |
|
export declare type DivOverlayHook<E extends DivOverlay, P> = (useElement: ElementHook<E, P>, useLifecycle: DivOverlayLifecycleHook<E, P>) => (props: P, setOpen: SetOpenFunc) => ReturnType<ElementHook<E, P>>; |
|
export declare function createDivOverlayHook<E extends DivOverlay, P extends LayerProps>(useElement: ElementHook<E, P>, useLifecycle: DivOverlayLifecycleHook<E, P>): (props: P, setOpen: SetOpenFunc) => ReturnType<ElementHook<E, P>>;
|
|
|