import { NETWORK_INTERCEPTOR_TYPES } from './interfaces/NetworkMonitoring'; import { MethodType } from './interfaces/HTTP'; import { SessionStatus } from './interfaces/Types'; interface Properties { [key: string]: any; } export declare const initialize: ({ patch }?: { patch?: string | undefined; }) => void; export declare const endAppStartup: (properties?: Properties) => void; export declare const setUserIdentifier: (userIdentifier: string) => void; export declare const clearUserIdentifier: () => void; export declare const setUsername: (username: string) => void; export declare const clearUsername: () => void; export declare const setUserEmail: (userEmail: string) => void; export declare const clearUserEmail: () => void; /** * @deprecated Use addBreadcrumb() instead. This API will be removed in a future release. */ export declare const logBreadcrumb: (message: string) => void; export declare const addBreadcrumb: (message: string) => void; export declare const logScreen: (screenName: string) => void; export declare const startMoment: (name: string, identifier?: string, properties?: Properties) => void; /** * @deprecated Use startMoment() instead. This API will be removed in a future release. */ export declare const startMomentAllowingScreenshot: (name: string, allowScreenshot: boolean, identifier?: string, properties?: Properties) => void; export declare const endMoment: (name: string, identifier?: string, properties?: Properties) => void; /** * @deprecated Use addUserPersona() instead. This API will be removed in a future release. */ export declare const setUserPersona: (persona: string) => void; export declare const addUserPersona: (persona: string) => void; export declare const clearUserPersona: (persona: string) => void; export declare const clearAllUserPersonas: () => void; export declare const WARNING = "warning"; export declare const INFO = "info"; export declare const ERROR = "error"; export declare const logInfo: (message: string) => void; export declare const logWarning: (message: string) => void; export declare const logError: (message: string) => void; export declare const logMessage: (message: string, severity?: 'info' | 'warning' | 'error', properties?: Properties, allowScreenshot?: boolean) => void; export declare const logHandledError: (error: Error, properties?: Properties) => void; export declare const startView: (view: string) => void; export declare const endView: (view: string) => void; export declare const generateStackTrace: () => string; export declare const setJavaScriptPatch: (patch: string) => void; export declare const setJavaScriptBundlePath: (path: string) => void; export declare const addSessionProperty: (key: string, value: string, permanent: boolean) => Promise; export declare const removeSessionProperty: (key: string) => void; export declare const getSessionProperties: () => any; export declare const endSession: (clearUserInfo?: boolean) => any; export declare const setUserAsPayer: () => void; export declare const clearUserAsPayer: () => void; export declare const recordNetworkRequest: (url: string, httpMethod: MethodType, startInMillis: number, endInMillis: number, bytesSent?: number, bytesReceived?: number, statusCode?: number, error?: string) => void; /** * @deprecated Use recordNetworkRequest() instead. This API will be removed in a future release. */ export declare const logNetworkRequest: (url: string, httpMethod: MethodType, startInMillis: number, endInMillis: number, bytesSent: number, bytesReceived: number, statusCode: number, error?: string) => void; export declare const logNetworkClientError: (url: string, httpMethod: MethodType, startInMillis: number, endInMillis: number, errorType: string, errorMessage: string) => void; export declare const getLastRunEndState: () => Promise; export declare const getDeviceId: () => string; export declare const getCurrentSessionId: () => Promise; export declare const applyNetworkInterceptors: (networkSDKInstance: NETWORK_INTERCEPTOR_TYPES) => 0 | 1; export {};