import { default as React } from 'react'; export interface LinkClickTrackingParams { link_text: string; link_url: string; to_page: string; navigation_type: string; component_name?: string; [key: string]: unknown; } export type LinkTrackingFunction = (params: LinkClickTrackingParams) => void; interface TrackedLinkProps extends React.AnchorHTMLAttributes { children?: React.ReactNode; to?: string | { pathname?: string; [key: string]: any; }; href?: string; trackingLabel?: string; componentName?: string; onTrack?: LinkTrackingFunction; trackingParams?: Record; LinkComponent?: React.ComponentType; linkProps?: Record; } /** * TrackedLink - Enhanced Link component with automatic analytics tracking * * Features: * - Automatically tracks link clicks with customizable parameters * - Framework agnostic - works with any Link component (React Router, Next.js, etc.) * - Falls back to regular anchor tags if no LinkComponent provided * - Flexible tracking function injection for different analytics providers * - Extracts link text automatically for tracking labels * - Type-safe tracking parameter interface * * @param to - Destination URL or route object (for router Links) * @param href - Destination URL (for anchor tags) * @param LinkComponent - Link component to use (e.g., React Router's Link) * @param onTrack - Optional function to handle tracking events * @param trackingLabel - Custom label for tracking (defaults to link text) * @param componentName - Name of the component for context * @param trackingParams - Additional parameters to include in tracking * @param linkProps - Additional props to pass to the Link component */ export declare const TrackedLink: React.FC; export {}; //# sourceMappingURL=TrackedLink.d.ts.map