import React from "react"; import type { MouseEventHandler } from "react"; import type { TagName } from "./tagNames"; interface TrackerProps { clickTrackParam?: TrackClickParams; exposureTrackParam?: TrackExposureParams; onClick?: MouseEventHandler; } export interface SendData { (type: "click", trackerParams: TrackClickParams): void; (type: "exposure", trackerParams: TrackExposureParams): void; } type TrackerEl = (props: TrackerProps & { children?: React.ReactNode; } & JSX.IntrinsicElements[T]) => JSX.Element; type TrackerElMap = { [T in TagName]: TrackerEl; }; declare const getTracerComponent: ({ sendData, onError, }: { sendData: SendData; onError?: ((err: any) => void) | undefined; }) => TrackerElMap; export default getTracerComponent;