import type { RumActionEvent , RumErrorEvent , RumEvent , RumResourceEvent , RumViewEvent } from '@datadog/browser-rum' ; import type { Segment } from '@datadog/browser-rum/cjs/types' ; export interface ServerInternalMonitoringMessage { message : string ; status : string ; error : { kind : string ; } ; } export function isRumResourceEvent ( event ) { return event . type === 'resource' ; } export function isRumUserActionEvent ( event ) { return event . type === 'action' ; } export function isRumViewEvent ( event ) { return event . type === 'view' ; } export function isRumErrorEvent ( event ) { return event . type === 'error' ; } export interface SegmentFile { filename : string ; encoding : string ; mimetype : string ; data : Segment ; } export interface SessionReplayCall { segment : SegmentFile ; meta : { [ key ] : string ; } ; }