UNPKG

@critters/next

Version:

Secure bug reporting library for Next.js applications

70 lines (69 loc) 1.7 kB
declare const consoleLogs: Array<{ level: "log" | "info" | "warn" | "error"; message: string; timestamp: string; }>; declare const networkRequests: Array<{ url: string; method: string; status?: number; duration?: number; request_headers?: Record<string, string>; response_headers?: Record<string, string>; request_body?: any; response_body?: any; }>; declare const userInteractions: { last_action?: string; last_action_timestamp?: string; user_path: string[]; }; /** * Start capturing console logs */ export declare function startConsoleCapture(): void; /** * Stop capturing console logs */ export declare function stopConsoleCapture(): void; /** * Start capturing network requests */ export declare function startNetworkCapture(): void; /** * Stop capturing network requests */ export declare function stopNetworkCapture(): void; /** * Start capturing user interactions */ export declare function startUserInteractionCapture(): void; /** * Get captured console logs */ export declare function getConsoleLogs(): typeof consoleLogs; /** * Get captured network requests */ export declare function getNetworkRequests(): typeof networkRequests; /** * Get captured user interactions */ export declare function getUserInteractions(): typeof userInteractions; /** * Get browser information */ export declare function getBrowserData(): Record<string, any>; /** * Clear all captured data */ export declare function clearCapturedData(): void; /** * Start all data collectors */ export declare function startAllCollectors(): void; /** * Stop all data collectors */ export declare function stopAllCollectors(): void; export {};