1import { IgnorePattern, LogData } from './Data/LogBoxData'; 2import { ExtendedExceptionData } from './Data/parseLogBoxLog'; 3 4export { LogData, ExtendedExceptionData, IgnorePattern }; 5 6interface ILogBox { 7 install(): void; 8 uninstall(): void; 9 isInstalled(): boolean; 10 ignoreLogs(patterns: readonly IgnorePattern[]): void; 11 ignoreAllLogs(ignore?: boolean): void; 12 clearAllLogs(): void; 13 addLog(log: LogData): void; 14 addException(error: ExtendedExceptionData): void; 15} 16 17const LogBox: ILogBox = { 18 install(): void { 19 // Do nothing. 20 }, 21 22 uninstall(): void { 23 // Do nothing. 24 }, 25 26 isInstalled(): boolean { 27 return false; 28 }, 29 30 ignoreLogs(patterns: readonly IgnorePattern[]): void { 31 // Do nothing. 32 }, 33 34 ignoreAllLogs(value?: boolean): void { 35 // Do nothing. 36 }, 37 38 clearAllLogs(): void { 39 // Do nothing. 40 }, 41 42 addLog(log: LogData): void { 43 // Do nothing. 44 }, 45 46 addException(ex: ExtendedExceptionData): void { 47 // Do nothing. 48 }, 49}; 50 51export default LogBox; 52