/opt/canhelp/node_modules/@react-leaflet/core/lib
Edit: /opt/canhelp/node_modules/@react-leaflet/core/lib/element.d.ts (790B)
import { type RefObject } from 'react';
import type { LeafletContextInterface } from './context.js';
export type LeafletElement
= Readonly<{
instance: T;
context: LeafletContextInterface;
container?: C | null;
}>;
export declare function createElementObject(instance: T, context: LeafletContextInterface, container?: C | null): LeafletElement;
export type ElementHook = (props: P, context: LeafletContextInterface) => RefObject>;
export declare function createElementHook(createElement: (props: P, context: LeafletContextInterface) => LeafletElement, updateElement?: (instance: E, props: P, prevProps: P) => void): (props: P, context: LeafletContextInterface) => ReturnType>;