import { NoibuConfig } from './config'; export declare const SUCCESS_MSG = "SUCCESS"; export declare const TOO_MANY_IDS_ADDED_MSG = "TOO_MANY_IDS_ADDED"; export declare const ID_NAME_ALREADY_ADDED_MSG = "ID_NAME_ALREADY_ADDED"; export declare const NAME_TOO_LONG_MSG = "NAME_TOO_LONG"; export declare const VALUE_TOO_LONG_MSG = "VALUE_TOO_LONG"; export declare const INVALID_NAME_TYPE_MSG = "INVALID_NAME_TYPE"; export declare const INVALID_VALUE_TYPE_MSG = "INVALID_VALUE_TYPE"; export declare const NAME_HAS_NO_LENGTH_MSG = "NAME_HAS_NO_LENGTH"; export declare const VALUE_HAS_NO_LENGTH_MSG = "VALUE_HAS_NO_LENGTH"; export declare const ERROR_HAS_NO_MSG_MSG = "ERROR_HAS_NO_MSG"; export declare const NULL_CUSTOM_ERR_MSG = "NULL_CUSTOM_ERROR"; export declare const TOO_MANY_ERRORS_RECEIVED_PER_PAGEVISIT_MSG = "TOO_MANY_ERRORS_RECEIVED_PER_PAGEVISIT"; export declare const NOT_INITIALIZED_MSG = "NOT_INITIALIZED"; export declare function warn(message: string): void; export declare const Noibu: { /** * Initializes the SDK. All capture (session replay, touches, keyboard, network, native crashes) * runs natively; this installs the JS-side error handlers (and the optional JS network fallback) * and hands the config to the native module. */ init(config: NoibuConfig): Promise; /** True once init has completed successfully. */ readonly isInitialized: boolean; /** * Report a page navigation. Apps using react-navigation should prefer * `registerNavigationContainer`/`useNoibuNavigation`, which call this automatically. */ trackNavigation(name?: string): void; /** * Attach a custom attribute (customer id, order id…) to the session. * Returns a v0.x-compatible result string ('SUCCESS' on success). */ addCustomAttribute(name: string, value: string): string; /** * Report a custom error. Accepts an Error (or {message, stack}) or a message + optional stack. * Returns a v0.x-compatible result string. */ addError(error: Error | { message: string; stack?: string; } | string, stack?: string): string; /** test-only: clears module state so init can run again. */ _resetForTests(): void; };