import { type MutableRefObject } from 'react'; import type { LeafletContextInterface } from './context.js'; export declare type LeafletElement = Readonly<{ instance: T; context: LeafletContextInterface; container?: C | null; }>; export declare function createElementObject(instance: T, context: LeafletContextInterface, container?: C | null): LeafletElement; export declare type ElementHook = (props: P, context: LeafletContextInterface) => MutableRefObject>; export declare function createElementHook(createElement: (props: P, context: LeafletContextInterface) => LeafletElement, updateElement?: (instance: E, props: P, prevProps: P) => void): (props: P, context: LeafletContextInterface) => ReturnType>;