import { type LogEntry, type LogLevel } from '@reown/appkit-core-react-native'; export interface UseAppKitLogsReturn { /** * All logs from AppKit */ logs: LogEntry[]; /** * Get logs filtered by level */ getLogsByLevel: (level: LogLevel) => LogEntry[]; /** * Get recent logs (default: 100) */ getRecentLogs: (count?: number) => LogEntry[]; /** * Export all logs as JSON string */ exportLogs: () => string; /** * Get logging statistics by level */ getLogsStats: () => Record; /** * Clear all logs */ clearLogs: () => void; /** * Convenience getters for different log levels (regular arrays, safe for console.log) */ errorLogs: LogEntry[]; warningLogs: LogEntry[]; infoLogs: LogEntry[]; debugLogs: LogEntry[]; } /** * React hook for accessing AppKit logs * * This hook provides reactive access to AppKit's internal logging system. * It automatically updates when new logs are added or when logs are cleaned up. * * @example * ```typescript * function MyComponent() { * const { logs, errorLogs, exportLogs, clearLogs } = useAppKitLogs(); * * return ( * * Total logs: {logs.length} * Error logs: {errorLogs.length} *