1 | import type { ClientOptions, InferFeaturesFromPlugins, Reactotron, ReactotronCore } from "reactotron-core-client";
|
2 | import type { AsyncStorageStatic } from "@react-native-async-storage/async-storage";
|
3 | import asyncStorage, { AsyncStorageOptions } from "./plugins/asyncStorage";
|
4 | import overlay from "./plugins/overlay";
|
5 | import openInEditor, { OpenInEditorOptions } from "./plugins/openInEditor";
|
6 | import trackGlobalErrors, { TrackGlobalErrorsOptions } from "./plugins/trackGlobalErrors";
|
7 | import networking, { NetworkingOptions } from "./plugins/networking";
|
8 | import storybook from "./plugins/storybook";
|
9 | import devTools from "./plugins/devTools";
|
10 | import trackGlobalLogs from "./plugins/trackGlobalLogs";
|
11 | export interface UseReactNativeOptions {
|
12 | errors?: TrackGlobalErrorsOptions | boolean;
|
13 | log?: boolean;
|
14 | editor?: OpenInEditorOptions | boolean;
|
15 | overlay?: boolean;
|
16 | asyncStorage?: AsyncStorageOptions | boolean;
|
17 | networking?: NetworkingOptions | boolean;
|
18 | storybook?: boolean;
|
19 | devTools?: boolean;
|
20 | }
|
21 | export declare const reactNativeCorePlugins: (((reactotron: ReactotronCore) => {
|
22 | features: {
|
23 | trackAsyncStorage: () => void;
|
24 | untrackAsyncStorage: () => void;
|
25 | };
|
26 | }) | (() => {
|
27 | onCommand: (command: import("lib/reactotron-core-contract/dist/types/src").Command<import("lib/reactotron-core-contract/dist/types/src").CommandTypeKey, any>) => void;
|
28 | }) | ((reactotron: ReactotronCore) => {
|
29 | onConnect: () => void;
|
30 | }))[];
|
31 | type ReactNativePluginFeatures = InferFeaturesFromPlugins<ReactotronCore, typeof reactNativeCorePlugins>;
|
32 | export interface ReactotronReactNative extends Reactotron, ReactNativePluginFeatures {
|
33 | useReactNative: (options?: UseReactNativeOptions) => this;
|
34 | asyncStorageHandler?: AsyncStorageStatic;
|
35 | setAsyncStorageHandler: (asyncStorage: AsyncStorageStatic) => this;
|
36 | }
|
37 | declare const reactotron: ReactotronReactNative;
|
38 | export { asyncStorage, trackGlobalErrors, trackGlobalLogs, openInEditor, overlay, networking, storybook, devTools, };
|
39 | export type { ClientOptions };
|
40 | export default reactotron;
|