@codmir/sdk 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,77 +0,0 @@
1
- import { O as OverseerConfig, c as captureException$1, a as captureMessage$1, s as setUser$1, h as setTag$1, b as setTags$1, d as addBreadcrumb$1, f as flush$1, e as close$1 } from '../index-BlgYnCLd.js';
2
- export { B as Breadcrumb, j as OverseerEvent, S as SeverityLevel, U as UserContext, g as getClient } from '../index-BlgYnCLd.js';
3
-
4
- /**
5
- * @codmir/sdk/nextjs - Next.js Integration
6
- *
7
- * Automatic error tracking, session replay, and performance
8
- * monitoring for Next.js applications.
9
- *
10
- * @example
11
- * ```typescript
12
- * // instrumentation.ts
13
- * import * as Codmir from '@codmir/sdk/nextjs';
14
- *
15
- * Codmir.init({
16
- * dsn: process.env.NEXT_PUBLIC_CODMIR_DSN,
17
- * environment: process.env.NODE_ENV,
18
- * });
19
- * ```
20
- */
21
-
22
- interface NextjsConfig extends OverseerConfig {
23
- /** Automatically capture unhandled errors */
24
- captureUnhandledErrors?: boolean;
25
- /** Automatically capture unhandled promise rejections */
26
- captureUnhandledRejections?: boolean;
27
- /** Track route changes as breadcrumbs */
28
- trackRouteChanges?: boolean;
29
- /** Enable session replay */
30
- enableReplay?: boolean;
31
- }
32
- interface RequestError {
33
- digest?: string;
34
- message?: string;
35
- name?: string;
36
- stack?: string;
37
- }
38
- interface ErrorContext {
39
- routerKind: string;
40
- routePath: string;
41
- routeType: string;
42
- renderSource?: string;
43
- revalidateReason?: string;
44
- }
45
- declare function init(config?: NextjsConfig): void;
46
- /**
47
- * Capture a server-side request error (App Router)
48
- */
49
- declare function captureRequestError(error: RequestError, errorContext: Partial<ErrorContext>, request?: Request): string;
50
- /**
51
- * Handler for Next.js App Router errors
52
- * Use in instrumentation.ts: export const onRequestError = captureRouterError
53
- */
54
- declare function captureRouterError(error: RequestError, request: {
55
- path: string;
56
- method: string;
57
- headers: Record<string, string>;
58
- }, context: ErrorContext): Promise<void>;
59
- /**
60
- * Track router transition start (for performance)
61
- */
62
- declare function captureRouterTransitionStart(route: string): void;
63
-
64
- declare const captureException: typeof captureException$1;
65
- declare const captureMessage: typeof captureMessage$1;
66
- declare const setUser: typeof setUser$1;
67
- declare const setTag: typeof setTag$1;
68
- declare const setTags: typeof setTags$1;
69
- declare const addBreadcrumb: typeof addBreadcrumb$1;
70
- declare const flush: typeof flush$1;
71
- declare const close: typeof close$1;
72
- /**
73
- * Check if Overseer is initialized
74
- */
75
- declare function isOverseerInitialized(): boolean;
76
-
77
- export { type ErrorContext, type NextjsConfig, OverseerConfig, type RequestError, addBreadcrumb, captureException, captureMessage, captureRequestError, captureRouterError, captureRouterTransitionStart, close, flush, init, isOverseerInitialized, setTag, setTags, setUser };
@@ -1 +0,0 @@
1
- export { B as Breadcrumb, E as ExceptionData, k as OverseerClient, O as OverseerConfig, j as OverseerEvent, R as RequestData, S as SeverityLevel, l as StackFrame, U as UserContext, d as addBreadcrumb, c as captureException, a as captureMessage, e as close, f as flush, g as getClient, m as init, h as setTag, b as setTags, s as setUser } from '../index-BlgYnCLd.cjs';
@@ -1 +0,0 @@
1
- export { B as Breadcrumb, E as ExceptionData, k as OverseerClient, O as OverseerConfig, j as OverseerEvent, R as RequestData, S as SeverityLevel, l as StackFrame, U as UserContext, d as addBreadcrumb, c as captureException, a as captureMessage, e as close, f as flush, g as getClient, m as init, h as setTag, b as setTags, s as setUser } from '../index-BlgYnCLd.js';
@@ -1,95 +0,0 @@
1
- import { O as OverseerConfig } from '../index-BlgYnCLd.cjs';
2
- export { B as Breadcrumb, S as SeverityLevel, U as UserContext, d as addBreadcrumb, c as captureException, a as captureMessage, e as close, f as flush, g as getClient, b as setTags, s as setUser } from '../index-BlgYnCLd.cjs';
3
-
4
- /**
5
- * @codmir/sdk/react-native - React Native Integration
6
- *
7
- * Error tracking and monitoring for React Native applications.
8
- *
9
- * @example
10
- * ```typescript
11
- * // App.tsx
12
- * import * as Codmir from '@codmir/sdk/react-native';
13
- *
14
- * Codmir.init({
15
- * dsn: 'https://your-project.codmir.com/api/overseer',
16
- * });
17
- *
18
- * export default function App() {
19
- * return (
20
- * <Codmir.ErrorBoundary fallback={<ErrorScreen />}>
21
- * <YourApp />
22
- * </Codmir.ErrorBoundary>
23
- * );
24
- * }
25
- * ```
26
- */
27
-
28
- interface ReactNativeConfig extends OverseerConfig {
29
- /** Automatically capture native crashes */
30
- captureNativeCrashes?: boolean;
31
- /** Automatically track screen views */
32
- trackScreenViews?: boolean;
33
- /** Automatically track app state changes */
34
- trackAppState?: boolean;
35
- /** Include device info in events */
36
- includeDeviceInfo?: boolean;
37
- }
38
- interface DeviceInfo {
39
- platform: "ios" | "android";
40
- osVersion?: string;
41
- deviceModel?: string;
42
- appVersion?: string;
43
- buildNumber?: string;
44
- isEmulator?: boolean;
45
- }
46
- declare function init(config?: ReactNativeConfig): void;
47
- /**
48
- * Set device information (call this after getting device info from react-native-device-info)
49
- */
50
- declare function setDeviceInfo(info: DeviceInfo): void;
51
- /**
52
- * Track screen view (call this from your navigation listener)
53
- */
54
- declare function trackScreenView(screenName: string, params?: Record<string, unknown>): void;
55
- /**
56
- * Create a navigation listener for React Navigation
57
- */
58
- declare function createNavigationListener(): (state: any) => void;
59
- /**
60
- * Track app state change (foreground/background)
61
- */
62
- declare function trackAppStateChange(state: "active" | "background" | "inactive"): void;
63
- /**
64
- * Error Boundary props
65
- */
66
- interface ErrorBoundaryProps {
67
- children: React.ReactNode;
68
- fallback: React.ReactNode | ((error: Error) => React.ReactNode);
69
- onError?: (error: Error, componentStack: string) => void;
70
- }
71
- /**
72
- * Note: ErrorBoundary is a class component placeholder.
73
- * In actual usage, import React and implement properly.
74
- */
75
- declare function createErrorBoundary(React: any): {
76
- new (props: ErrorBoundaryProps): {
77
- [x: string]: any;
78
- componentDidCatch(error: Error, errorInfo: {
79
- componentStack: string;
80
- }): void;
81
- render(): any;
82
- };
83
- [x: string]: any;
84
- getDerivedStateFromError(error: Error): {
85
- hasError: boolean;
86
- error: Error;
87
- };
88
- };
89
-
90
- /**
91
- * Check if Overseer is initialized
92
- */
93
- declare function isOverseerInitialized(): boolean;
94
-
95
- export { type DeviceInfo, type ErrorBoundaryProps, OverseerConfig, type ReactNativeConfig, createErrorBoundary, createNavigationListener, init, isOverseerInitialized, setDeviceInfo, trackAppStateChange, trackScreenView };
@@ -1,95 +0,0 @@
1
- import { O as OverseerConfig } from '../index-BlgYnCLd.js';
2
- export { B as Breadcrumb, S as SeverityLevel, U as UserContext, d as addBreadcrumb, c as captureException, a as captureMessage, e as close, f as flush, g as getClient, b as setTags, s as setUser } from '../index-BlgYnCLd.js';
3
-
4
- /**
5
- * @codmir/sdk/react-native - React Native Integration
6
- *
7
- * Error tracking and monitoring for React Native applications.
8
- *
9
- * @example
10
- * ```typescript
11
- * // App.tsx
12
- * import * as Codmir from '@codmir/sdk/react-native';
13
- *
14
- * Codmir.init({
15
- * dsn: 'https://your-project.codmir.com/api/overseer',
16
- * });
17
- *
18
- * export default function App() {
19
- * return (
20
- * <Codmir.ErrorBoundary fallback={<ErrorScreen />}>
21
- * <YourApp />
22
- * </Codmir.ErrorBoundary>
23
- * );
24
- * }
25
- * ```
26
- */
27
-
28
- interface ReactNativeConfig extends OverseerConfig {
29
- /** Automatically capture native crashes */
30
- captureNativeCrashes?: boolean;
31
- /** Automatically track screen views */
32
- trackScreenViews?: boolean;
33
- /** Automatically track app state changes */
34
- trackAppState?: boolean;
35
- /** Include device info in events */
36
- includeDeviceInfo?: boolean;
37
- }
38
- interface DeviceInfo {
39
- platform: "ios" | "android";
40
- osVersion?: string;
41
- deviceModel?: string;
42
- appVersion?: string;
43
- buildNumber?: string;
44
- isEmulator?: boolean;
45
- }
46
- declare function init(config?: ReactNativeConfig): void;
47
- /**
48
- * Set device information (call this after getting device info from react-native-device-info)
49
- */
50
- declare function setDeviceInfo(info: DeviceInfo): void;
51
- /**
52
- * Track screen view (call this from your navigation listener)
53
- */
54
- declare function trackScreenView(screenName: string, params?: Record<string, unknown>): void;
55
- /**
56
- * Create a navigation listener for React Navigation
57
- */
58
- declare function createNavigationListener(): (state: any) => void;
59
- /**
60
- * Track app state change (foreground/background)
61
- */
62
- declare function trackAppStateChange(state: "active" | "background" | "inactive"): void;
63
- /**
64
- * Error Boundary props
65
- */
66
- interface ErrorBoundaryProps {
67
- children: React.ReactNode;
68
- fallback: React.ReactNode | ((error: Error) => React.ReactNode);
69
- onError?: (error: Error, componentStack: string) => void;
70
- }
71
- /**
72
- * Note: ErrorBoundary is a class component placeholder.
73
- * In actual usage, import React and implement properly.
74
- */
75
- declare function createErrorBoundary(React: any): {
76
- new (props: ErrorBoundaryProps): {
77
- [x: string]: any;
78
- componentDidCatch(error: Error, errorInfo: {
79
- componentStack: string;
80
- }): void;
81
- render(): any;
82
- };
83
- [x: string]: any;
84
- getDerivedStateFromError(error: Error): {
85
- hasError: boolean;
86
- error: Error;
87
- };
88
- };
89
-
90
- /**
91
- * Check if Overseer is initialized
92
- */
93
- declare function isOverseerInitialized(): boolean;
94
-
95
- export { type DeviceInfo, type ErrorBoundaryProps, OverseerConfig, type ReactNativeConfig, createErrorBoundary, createNavigationListener, init, isOverseerInitialized, setDeviceInfo, trackAppStateChange, trackScreenView };
@@ -1,206 +0,0 @@
1
- /**
2
- * @codmir/sdk/replay - Session Replay
3
- *
4
- * Record and replay user sessions for debugging.
5
- *
6
- * @example
7
- * ```typescript
8
- * import { ReplayRecorder, ReplayPlayer } from '@codmir/sdk/replay';
9
- *
10
- * // Recording
11
- * const recorder = new ReplayRecorder({ sessionSampleRate: 0.1 });
12
- * recorder.start();
13
- *
14
- * // Later: stop and get session
15
- * const session = recorder.stop();
16
- *
17
- * // Playback
18
- * const player = new ReplayPlayer({ container: document.getElementById('replay') });
19
- * player.load(session);
20
- * player.play();
21
- * ```
22
- */
23
- interface ReplaySession {
24
- id: string;
25
- userId?: string;
26
- startedAt: Date;
27
- endedAt?: Date;
28
- duration: number;
29
- url: string;
30
- userAgent: string;
31
- viewport: {
32
- width: number;
33
- height: number;
34
- };
35
- events: ReplayEvent[];
36
- errorIds: string[];
37
- segments: ReplaySegment[];
38
- tags: Record<string, string>;
39
- }
40
- interface ReplaySegment {
41
- id: string;
42
- sessionId: string;
43
- sequenceNumber: number;
44
- startTime: number;
45
- endTime: number;
46
- events: ReplayEvent[];
47
- compressed?: boolean;
48
- }
49
- type ReplayEvent = DOMSnapshotEvent | DOMIncrementalEvent | MouseEvent | ScrollEvent | InputEvent | ViewportEvent | ConsoleEvent | NetworkEvent | CustomEvent;
50
- interface BaseReplayEvent {
51
- timestamp: number;
52
- type: string;
53
- }
54
- interface DOMSnapshotEvent extends BaseReplayEvent {
55
- type: "dom_snapshot";
56
- data: {
57
- html: string;
58
- baseUrl: string;
59
- doctype?: string;
60
- };
61
- }
62
- interface DOMIncrementalEvent extends BaseReplayEvent {
63
- type: "dom_incremental";
64
- data: {
65
- mutations: DOMMutation[];
66
- };
67
- }
68
- interface DOMMutation {
69
- type: "add" | "remove" | "attribute" | "text";
70
- targetId: number;
71
- parentId?: number;
72
- data?: unknown;
73
- }
74
- interface MouseEvent extends BaseReplayEvent {
75
- type: "mouse_move" | "mouse_click" | "mouse_down" | "mouse_up";
76
- data: {
77
- x: number;
78
- y: number;
79
- targetId?: number;
80
- button?: number;
81
- };
82
- }
83
- interface ScrollEvent extends BaseReplayEvent {
84
- type: "scroll";
85
- data: {
86
- targetId: number | "window";
87
- x: number;
88
- y: number;
89
- };
90
- }
91
- interface InputEvent extends BaseReplayEvent {
92
- type: "input";
93
- data: {
94
- targetId: number;
95
- value: string;
96
- masked?: boolean;
97
- };
98
- }
99
- interface ViewportEvent extends BaseReplayEvent {
100
- type: "viewport";
101
- data: {
102
- width: number;
103
- height: number;
104
- };
105
- }
106
- interface ConsoleEvent extends BaseReplayEvent {
107
- type: "console";
108
- data: {
109
- level: "log" | "info" | "warn" | "error" | "debug";
110
- args: unknown[];
111
- stack?: string;
112
- };
113
- }
114
- interface NetworkEvent extends BaseReplayEvent {
115
- type: "network";
116
- data: {
117
- requestId: string;
118
- method: string;
119
- url: string;
120
- status?: number;
121
- duration?: number;
122
- error?: string;
123
- };
124
- }
125
- interface CustomEvent extends BaseReplayEvent {
126
- type: "custom";
127
- data: {
128
- name: string;
129
- payload: unknown;
130
- };
131
- }
132
- interface ReplayPrivacyConfig {
133
- maskAllInputs: boolean;
134
- maskInputTypes: string[];
135
- maskSelectors: string[];
136
- blockSelectors: string[];
137
- ignoreSelectors: string[];
138
- }
139
- interface ReplayConfig {
140
- sessionSampleRate: number;
141
- errorSampleRate: number;
142
- maxSessionDuration: number;
143
- segmentDuration: number;
144
- privacy: ReplayPrivacyConfig;
145
- beforeSend?: (session: ReplaySession) => ReplaySession | null;
146
- }
147
- type PlaybackState = "idle" | "playing" | "paused" | "ended";
148
- type PlaybackSpeed = 0.5 | 1 | 2 | 4 | 8;
149
- interface PlayerConfig {
150
- container: HTMLElement;
151
- speed?: PlaybackSpeed;
152
- skipInactiveThreshold?: number;
153
- showCursor?: boolean;
154
- showClickRipple?: boolean;
155
- highlightErrors?: boolean;
156
- }
157
- declare class ReplayRecorder {
158
- private config;
159
- private session;
160
- private currentSegment;
161
- private isRecording;
162
- private sessionStartTime;
163
- private cleanupFns;
164
- private onSegmentReady?;
165
- private onSessionEnd?;
166
- constructor(config?: Partial<ReplayConfig>);
167
- start(options?: {
168
- userId?: string;
169
- tags?: Record<string, string>;
170
- }): string | null;
171
- stop(): ReplaySession | null;
172
- markError(errorId: string): void;
173
- addCustomEvent(name: string, payload: unknown): void;
174
- getSessionId(): string | null;
175
- isActive(): boolean;
176
- onSegment(handler: (segment: ReplaySegment) => void): void;
177
- onSession(handler: (session: ReplaySession) => void): void;
178
- private getRelativeTime;
179
- private addEvent;
180
- private startNewSegment;
181
- private finalizeSegment;
182
- private captureSnapshot;
183
- private setupEventListeners;
184
- }
185
- declare class ReplayPlayer {
186
- private config;
187
- private session;
188
- private state;
189
- private currentTime;
190
- private animationFrameId;
191
- constructor(config: PlayerConfig);
192
- load(session: ReplaySession): void;
193
- play(): void;
194
- pause(): void;
195
- stop(): void;
196
- seek(time: number): void;
197
- setSpeed(speed: PlaybackSpeed): void;
198
- getState(): PlaybackState;
199
- getCurrentTime(): number;
200
- getDuration(): number;
201
- destroy(): void;
202
- }
203
- declare function createReplayRecorder(config?: Partial<ReplayConfig>): ReplayRecorder;
204
- declare function createReplayPlayer(config: PlayerConfig): ReplayPlayer;
205
-
206
- export { type ConsoleEvent, type CustomEvent, type DOMIncrementalEvent, type DOMMutation, type DOMSnapshotEvent, type InputEvent, type MouseEvent, type NetworkEvent, type PlaybackSpeed, type PlaybackState, type PlayerConfig, type ReplayConfig, type ReplayEvent, ReplayPlayer, type ReplayPrivacyConfig, ReplayRecorder, type ReplaySegment, type ReplaySession, type ScrollEvent, type ViewportEvent, createReplayPlayer, createReplayRecorder };
@@ -1,206 +0,0 @@
1
- /**
2
- * @codmir/sdk/replay - Session Replay
3
- *
4
- * Record and replay user sessions for debugging.
5
- *
6
- * @example
7
- * ```typescript
8
- * import { ReplayRecorder, ReplayPlayer } from '@codmir/sdk/replay';
9
- *
10
- * // Recording
11
- * const recorder = new ReplayRecorder({ sessionSampleRate: 0.1 });
12
- * recorder.start();
13
- *
14
- * // Later: stop and get session
15
- * const session = recorder.stop();
16
- *
17
- * // Playback
18
- * const player = new ReplayPlayer({ container: document.getElementById('replay') });
19
- * player.load(session);
20
- * player.play();
21
- * ```
22
- */
23
- interface ReplaySession {
24
- id: string;
25
- userId?: string;
26
- startedAt: Date;
27
- endedAt?: Date;
28
- duration: number;
29
- url: string;
30
- userAgent: string;
31
- viewport: {
32
- width: number;
33
- height: number;
34
- };
35
- events: ReplayEvent[];
36
- errorIds: string[];
37
- segments: ReplaySegment[];
38
- tags: Record<string, string>;
39
- }
40
- interface ReplaySegment {
41
- id: string;
42
- sessionId: string;
43
- sequenceNumber: number;
44
- startTime: number;
45
- endTime: number;
46
- events: ReplayEvent[];
47
- compressed?: boolean;
48
- }
49
- type ReplayEvent = DOMSnapshotEvent | DOMIncrementalEvent | MouseEvent | ScrollEvent | InputEvent | ViewportEvent | ConsoleEvent | NetworkEvent | CustomEvent;
50
- interface BaseReplayEvent {
51
- timestamp: number;
52
- type: string;
53
- }
54
- interface DOMSnapshotEvent extends BaseReplayEvent {
55
- type: "dom_snapshot";
56
- data: {
57
- html: string;
58
- baseUrl: string;
59
- doctype?: string;
60
- };
61
- }
62
- interface DOMIncrementalEvent extends BaseReplayEvent {
63
- type: "dom_incremental";
64
- data: {
65
- mutations: DOMMutation[];
66
- };
67
- }
68
- interface DOMMutation {
69
- type: "add" | "remove" | "attribute" | "text";
70
- targetId: number;
71
- parentId?: number;
72
- data?: unknown;
73
- }
74
- interface MouseEvent extends BaseReplayEvent {
75
- type: "mouse_move" | "mouse_click" | "mouse_down" | "mouse_up";
76
- data: {
77
- x: number;
78
- y: number;
79
- targetId?: number;
80
- button?: number;
81
- };
82
- }
83
- interface ScrollEvent extends BaseReplayEvent {
84
- type: "scroll";
85
- data: {
86
- targetId: number | "window";
87
- x: number;
88
- y: number;
89
- };
90
- }
91
- interface InputEvent extends BaseReplayEvent {
92
- type: "input";
93
- data: {
94
- targetId: number;
95
- value: string;
96
- masked?: boolean;
97
- };
98
- }
99
- interface ViewportEvent extends BaseReplayEvent {
100
- type: "viewport";
101
- data: {
102
- width: number;
103
- height: number;
104
- };
105
- }
106
- interface ConsoleEvent extends BaseReplayEvent {
107
- type: "console";
108
- data: {
109
- level: "log" | "info" | "warn" | "error" | "debug";
110
- args: unknown[];
111
- stack?: string;
112
- };
113
- }
114
- interface NetworkEvent extends BaseReplayEvent {
115
- type: "network";
116
- data: {
117
- requestId: string;
118
- method: string;
119
- url: string;
120
- status?: number;
121
- duration?: number;
122
- error?: string;
123
- };
124
- }
125
- interface CustomEvent extends BaseReplayEvent {
126
- type: "custom";
127
- data: {
128
- name: string;
129
- payload: unknown;
130
- };
131
- }
132
- interface ReplayPrivacyConfig {
133
- maskAllInputs: boolean;
134
- maskInputTypes: string[];
135
- maskSelectors: string[];
136
- blockSelectors: string[];
137
- ignoreSelectors: string[];
138
- }
139
- interface ReplayConfig {
140
- sessionSampleRate: number;
141
- errorSampleRate: number;
142
- maxSessionDuration: number;
143
- segmentDuration: number;
144
- privacy: ReplayPrivacyConfig;
145
- beforeSend?: (session: ReplaySession) => ReplaySession | null;
146
- }
147
- type PlaybackState = "idle" | "playing" | "paused" | "ended";
148
- type PlaybackSpeed = 0.5 | 1 | 2 | 4 | 8;
149
- interface PlayerConfig {
150
- container: HTMLElement;
151
- speed?: PlaybackSpeed;
152
- skipInactiveThreshold?: number;
153
- showCursor?: boolean;
154
- showClickRipple?: boolean;
155
- highlightErrors?: boolean;
156
- }
157
- declare class ReplayRecorder {
158
- private config;
159
- private session;
160
- private currentSegment;
161
- private isRecording;
162
- private sessionStartTime;
163
- private cleanupFns;
164
- private onSegmentReady?;
165
- private onSessionEnd?;
166
- constructor(config?: Partial<ReplayConfig>);
167
- start(options?: {
168
- userId?: string;
169
- tags?: Record<string, string>;
170
- }): string | null;
171
- stop(): ReplaySession | null;
172
- markError(errorId: string): void;
173
- addCustomEvent(name: string, payload: unknown): void;
174
- getSessionId(): string | null;
175
- isActive(): boolean;
176
- onSegment(handler: (segment: ReplaySegment) => void): void;
177
- onSession(handler: (session: ReplaySession) => void): void;
178
- private getRelativeTime;
179
- private addEvent;
180
- private startNewSegment;
181
- private finalizeSegment;
182
- private captureSnapshot;
183
- private setupEventListeners;
184
- }
185
- declare class ReplayPlayer {
186
- private config;
187
- private session;
188
- private state;
189
- private currentTime;
190
- private animationFrameId;
191
- constructor(config: PlayerConfig);
192
- load(session: ReplaySession): void;
193
- play(): void;
194
- pause(): void;
195
- stop(): void;
196
- seek(time: number): void;
197
- setSpeed(speed: PlaybackSpeed): void;
198
- getState(): PlaybackState;
199
- getCurrentTime(): number;
200
- getDuration(): number;
201
- destroy(): void;
202
- }
203
- declare function createReplayRecorder(config?: Partial<ReplayConfig>): ReplayRecorder;
204
- declare function createReplayPlayer(config: PlayerConfig): ReplayPlayer;
205
-
206
- export { type ConsoleEvent, type CustomEvent, type DOMIncrementalEvent, type DOMMutation, type DOMSnapshotEvent, type InputEvent, type MouseEvent, type NetworkEvent, type PlaybackSpeed, type PlaybackState, type PlayerConfig, type ReplayConfig, type ReplayEvent, ReplayPlayer, type ReplayPrivacyConfig, ReplayRecorder, type ReplaySegment, type ReplaySession, type ScrollEvent, type ViewportEvent, createReplayPlayer, createReplayRecorder };