lunary
Version:
Lunary is an open-source platform for AI developers.
24 lines (21 loc) • 912 B
TypeScript
import { L as Lunary } from './lunary-D5yxVq16.js';
import { cJSON, RunType, EventName, RunEvent } from './types.js';
declare class FrontendLunary extends Lunary {
private userId?;
private userProps?;
/**
* Identifies a user with a unique ID and properties.
* @param {string} userId - The unique identifier for the user.
* @param {cJSON} [userProps] - Custom properties to associate with the user.
*/
identify(userId: string, userProps?: cJSON): void;
/**
* Extends the trackEvent method to include userId and userProps.
* @param {RunType} type - The type of the run.
* @param {EventName} event - The name of the event.
* @param {Partial<RunEvent>} data - The data associated with the event.
*/
trackEvent(type: RunType, event: EventName, data: Partial<RunEvent>): void;
}
declare const lunary: FrontendLunary;
export { lunary as default };