UNPKG

add-inbox

Version:

Add inbox notifications to your application with one command

29 lines (28 loc) 991 B
/** * Utility functions for React version detection and compatibility checks */ /** * Gets the React version from the project's dependencies * @returns {string} The React version (e.g., '16.14.0', '17.0.2', '18.0.0') */ export declare function getReactVersion(): string; /** * Checks if the React version is modern (17 or higher) * @returns {boolean} True if React version is 17 or higher */ export declare function isModernReact(): boolean; /** * Checks if the React version is legacy (16.x) * @returns {boolean} True if React version is 16.x */ export declare function isLegacyReact(): boolean; /** * Detects if the project is a Next.js project by checking dependencies * @returns {boolean} True if Next.js is a dependency */ export declare function isNextJsProject(): boolean; /** * Gets the appropriate environment variable name based on framework * @returns {string} The environment variable name to use */ export declare function getEnvironmentVariableName(): string;