import Batcher from './batcher.js'; import ConstantProperties from './constantProperties.js'; type Value = string | number; export default class People { private readonly constantProperties; private readonly getTimestamp; private readonly onId; private readonly batcher; ownProperties: Record; constructor(constantProperties: ConstantProperties, getTimestamp: () => number, onId: (user_id: string) => void, batcher: Batcher); identify: (user_id: string, options?: { fromTracker: boolean; }) => void; /** Resets user id and own properties * * !hard reset will destroy persistent device id! * */ reset: (hard?: boolean) => void; get user_id(): string | null; /** * Will delete user and its data from backend, then reset all local properties */ deleteUser: () => void; /** * set user properties, overwriting existing ones * */ setProperties: (propertyOrObj: Record | string, value?: string) => void; /** * Set property if it doesn't exist yet * */ setPropertiesOnce: (properties: Record) => void; /** * Add value to property (will turn string prop into array) * */ appendValues: (key: string, value: string | number) => void; /** * Add unique values to property (will turn string prop into array) * */ appendUniqueValues: (key: string, value: string | number) => void; /** * Adds value (incl. negative) to existing numerical property * */ increment: (key: string, value: number) => void; /** mixpanel compatibility */ union: (key: string, value: string | number) => void; set: (propertyOrObj: Record | string, value?: string) => void; set_once: (properties: Record) => void; append: (key: string, value: string | number) => void; incrementBy: (key: string, value: number) => void; } export {};