@cruxstack/browser-sdk
Version:
A lightweight, privacy-focused JavaScript SDK for web analytics and event tracking. Built with TypeScript, featuring automatic event capture, event-time environment snapshots, intelligent queuing, and robust error handling.
9 lines (8 loc) • 412 B
TypeScript
import { FormEventData } from './types';
export declare const processFormEvent: (event: Event, eventType: FormEventData["eventType"]) => FormEventData | null;
export declare const createFormHandlers: (trackingCallback: (data: FormEventData) => void) => {
change: (this: any, ...args: any[]) => void;
submit: (event: Event) => void;
focus: (event: Event) => void;
blur: (event: Event) => void;
};