import { ExtendedError, StackFrame } from 'react-native/Libraries/Core/Devtools/parseErrorStack'; /** * Ensures that a function can only be executed once * @param func - The original function that we want to ensure is called only once. * @param context - The context in which the original function should be executed. * @returns The result of the original function if it's called for the first time, or the previously stored result if called again. */ export declare function once(func: (this: This, ...args: any[]) => T, context?: This): (...args: any[]) => T; export declare const getStackTrace: (e: ExtendedError) => StackFrame[]; /** * Checks if a given value is an instance of the Error class. * @param value - The value to be checked for being an Error instance. * @returns True if the value is an Error instance, false otherwise. */ export declare function isError(value: any): value is Error; /** * Get the sourcemap ID for the current platform. * @returns {string | undefined} - The sourcemap ID if found. */ export declare const getSourcemapId: () => string | undefined;