UNPKG

@perceptr/web-sdk

Version:

Perceptr Web SDK for recording and monitoring user sessions

19 lines (18 loc) 569 B
import type { CoreConfig, UserIdentity } from "./types"; declare class PerceptrSDK { private static instance; private core; private initialized; private constructor(); static getInstance(): PerceptrSDK; init(config: CoreConfig): void; start(): Promise<void>; stop(): Promise<void>; pause(): void; resume(): void; identify(distinctId: string, traits?: Record<string, any>): Promise<void>; private ensureInitialized; } declare const _default: PerceptrSDK; export default _default; export type { CoreConfig, UserIdentity };