@strathberry/klaviyo-client
Version:
(Fork) Klaviyo API client for Node.js and browser
8 lines (7 loc) • 481 B
TypeScript
import { KlaviyoEventProperties, KlaviyoTrackProfile } from '.';
export declare class KlaviyoClient {
private readonly token;
constructor(token: string);
identify<T extends Record<string, unknown>>(profile: Partial<KlaviyoTrackProfile> & T): Promise<number>;
track<TP extends Record<string, unknown>, TE extends Record<string, unknown>>(eventName: string, profile: Partial<KlaviyoTrackProfile> & TP, event: Partial<KlaviyoEventProperties> & TE): Promise<number>;
}