/** * Logs an error in development mode and returns a fallback value. * * @param error - The caught error object. * @param errorMessage - A human-readable description of the failure. * @param fallback - The value to return when an error occurs. * @param additionalInfo - Optional context to include in the log. * @returns The fallback value. */ export declare const handleError: (error: unknown, errorMessage: string, fallback: T, additionalInfo?: Record) => T; /** * Safely parses a JSON string, returning a fallback on failure or null/undefined input. * * @param jsonString - The JSON string to parse. * @param fallback - The value to return if parsing fails. * @returns The parsed value or the fallback. * * @example * ```ts * const apps = safeJsonParse(rawJson, []); * ``` */ export declare const safeJsonParse: (jsonString: string | null | undefined, fallback: T) => T; /** * Creates a DeviceEventEmitter listener and returns an unsubscribe function. * * @param eventName - The native event name to listen for. * @param callback - The function invoked when the event fires. * @returns A cleanup function that removes the listener. */ export declare const createEventListener: (eventName: string, callback: (data: T) => void) => (() => void); //# sourceMappingURL=helper.d.ts.map