/** * React Native Global Type Declarations * * This file declares global types that are available in React Native * but might not be available in TypeScript compilation. */ // React Native global type declarations declare global { interface Navigator { product?: string; } var navigator: Navigator | undefined; var localStorage: Storage | undefined; interface Storage { getItem(key: string): string | null; setItem(key: string, value: string): void; removeItem(key: string): void; } // Global object - React Native environment var global: typeof globalThis & { global: typeof globalThis; Buffer: typeof Buffer; process: NodeJS.Process; }; // Process object for Node.js compatibility namespace NodeJS { interface Process { env: Record; } } var process: NodeJS.Process; // Buffer for Node.js compatibility var Buffer: { from(data: any, encoding?: string): any; alloc(size: number): any; }; } export {};