import { Context, ContextValue, UserConfiguration } from '@keitoaino/datadog-browser-core'; export interface RumUserConfiguration extends UserConfiguration { applicationId: string; } export interface InternalContext { application_id: string; session_id: string | undefined; view?: { id: string; url: string; }; user_action?: { id: string; }; } declare const STUBBED_RUM: { init(userConfiguration: RumUserConfiguration): void; addRumGlobalContext(key: string, value: ContextValue): void; setRumGlobalContext(context: Context): void; addUserAction(name: string, context: Context): void; getInternalContext(startTime?: number | undefined): InternalContext | undefined; }; export declare type RumGlobal = typeof STUBBED_RUM; export declare const datadogRum: { init(userConfiguration: RumUserConfiguration): void; addRumGlobalContext(key: string, value: ContextValue): void; setRumGlobalContext(context: Context): void; addUserAction(name: string, context: Context): void; getInternalContext(startTime?: number | undefined): InternalContext | undefined; }; export declare function makeRumGlobal(stub: RumGlobal): { init(userConfiguration: RumUserConfiguration): void; addRumGlobalContext(key: string, value: ContextValue): void; setRumGlobalContext(context: Context): void; addUserAction(name: string, context: Context): void; getInternalContext(startTime?: number | undefined): InternalContext | undefined; }; export {};