UNPKG

@fullstory/react-native

Version:
38 lines 1.22 kB
import { FSSessionData, Spec } from './NativeFullStory'; export declare const isTurboModuleEnabled: boolean; interface UserVars { displayName?: string; email?: string; [key: string]: any; } export declare enum LogLevel { Log = 0, Debug = 1, Info = 2, Warn = 3, Error = 4, Assert = 5 } export type SupportedFSAttributes = 'fsClass' | 'fsAttribute' | 'fsTagName' | 'dataElement' | 'dataComponent' | 'dataSourceFile'; type SharedMethods = Pick<Spec, 'anonymize' | 'identify' | 'onReady' | 'getCurrentSession' | 'getCurrentSessionURL' | 'consent' | 'event' | 'shutdown' | 'restart' | 'resetIdleTimer'>; export declare type FullstoryStatic = SharedMethods & { LogLevel: typeof LogLevel; setUserVars(userVars: UserVars): void; log(logLevel: LogLevel, message: string): void; onReady(listener: (data: FSSessionData) => void): { remove: () => void; }; }; declare module 'react' { namespace JSX { interface IntrinsicAttributes { fsAttribute?: { [key: string]: string; }; fsClass?: string; fsTagName?: string; } } } export {}; //# sourceMappingURL=fullstoryInterface.d.ts.map