1/** 2 * Copyright (c) Meta Platforms, Inc. and affiliates. 3 * 4 * This source code is licensed under the MIT license found in the 5 * LICENSE file in the root directory of this source tree. 6 * 7 * @format 8 */ 9 10export interface LogBoxStatic { 11 /** 12 * Silence any logs that match the given strings or regexes. 13 */ 14 ignoreLogs(patterns: (string | RegExp)[]): void; 15 16 /** 17 * Toggle error and warning notifications 18 * Note: this only disables notifications, uncaught errors will still open a full screen LogBox. 19 * @param ignore whether to ignore logs or not 20 */ 21 ignoreAllLogs(ignore?: boolean): void; 22 23 install(): void; 24 uninstall(): void; 25} 26 27export const LogBox: LogBoxStatic; 28export type LogBox = LogBoxStatic; 29