koalaware-js
Version:
SDK for Koalaware session and event recording
20 lines (17 loc) • 630 B
TypeScript
import React, { ReactNode } from 'react';
import { KoalawareTracker } from '..';
interface KoalawareInterface {
addEvent: (event: any) => void;
identifyUser: (identifier: string, userProperties: Record<string, any>) => void;
start: () => void;
stop: () => void;
viewLogs: () => void;
}
interface KoalawareProviderProps {
apiKey?: string;
client?: KoalawareTracker;
children: ReactNode;
}
declare const KoalawareProvider: ({ apiKey, client, children }: KoalawareProviderProps) => React.JSX.Element;
declare const useKoalaware: () => KoalawareInterface;
export { KoalawareProvider, useKoalaware };