/** * Determines if the current environment is a development environment. * * This function checks the global variable `__DEV__`, which is typically * set to true during development builds in frameworks like React Native. * If the variable is defined and true, the function returns true; otherwise, it returns false. * * @returns {boolean} - Returns `true` if the environment is development, otherwise `false`. * * @example * // Example usage: * if (isDev()) { * console.log("Running in development mode."); * } else { * console.log("Running in production mode."); * } */ declare function isDev(): boolean; /** * Identity function on web. Returns nothing on other platforms. * * Note: Platform splitting does not tree-shake away the other platforms, * so don't do stuff like e.g. rely on platform-specific imports. Use * platform-split files instead. */ export declare function web(value: any): any; /** * Identity function on iOS. Returns nothing on other platforms. * * Note: Platform splitting does not tree-shake away the other platforms, * so don't do stuff like e.g. rely on platform-specific imports. Use * platform-split files instead. */ declare function ios(value: any): any; /** * Identity function on Android. Returns nothing on other platforms.. * * Note: Platform splitting does not tree-shake away the other platforms, * so don't do stuff like e.g. rely on platform-specific imports. Use * platform-split files instead. */ declare function android(value: any): any; /** * Identity function on iOS and Android. Returns nothing on web. * * Note: Platform splitting does not tree-shake away the other platforms, * so don't do stuff like e.g. rely on platform-specific imports. Use * platform-split files instead. */ declare function native(value: any): any; /** * Checks if the device is an iPhone X. * * This function checks the device's operating system, screen dimensions, and type to determine if it's an iPhone X. * * @returns {boolean} True if the device is an iPhone X, false otherwise. * * @example * if (Platform.isIphoneX()) { * console.log('This is an iPhone X'); * } else { * console.log('This is not an iPhone X'); * } */ declare function isIphoneX(): boolean; /** * Returns the style or properties for iPhone X devices or regular devices. * * This function checks if the device is an iPhone X using the `isIphoneX` function and returns the corresponding style. * * @param {any} iphoneXStyle The style to return if the device is an iPhone X. * @param {any} regularStyle The style to return if the device is not an iPhone X. * * @returns {any} The style for the current device. * * @example * const style = iphoneX({ height: 100 }, { height: 50 }); * console.log(style); // Output: { height: 100 } if iPhone X, { height: 50 } otherwise */ declare function iphoneX(iphoneXStyle: any, regularStyle: any): any; /** * Returns the height of the status bar based on the device's operating system. * * This function checks the device's operating system and returns the corresponding status bar height. * If the device is an iPhone X, it returns the height based on the `safe` parameter. * * @param {boolean} [safe=false] Whether to return the safe area height for iPhone X devices. * * @returns {number} The height of the status bar. * * @example * const statusBarHeight = getStatusBarHeight(true); * console.log(statusBarHeight); // Output: 44 if iPhone X, 20 otherwise */ declare function getStatusBarHeight(safe?: boolean): any; /** * Returns the bottom space height for iPhone X devices. * * This function checks if the device is an iPhone X and returns the corresponding bottom space height. * * @returns {number} The bottom space height for iPhone X devices, 0 otherwise. * * @example * const bottomSpace = getBottomSpace(); * console.log(bottomSpace); // Output: 34 if iPhone X, 0 otherwise */ declare function getBottomSpace(): 0 | 34; declare const _default: { isNextJs: () => boolean; isIphoneX: typeof isIphoneX; iphoneX: typeof iphoneX; getStatusBarHeight: typeof getStatusBarHeight; getBottomSpace: typeof getBottomSpace; isTouchDevice: () => boolean; canUseNativeDriver: () => boolean; select: { (specifics: ({ [platform in import("react-native").PlatformOSType]?: T; } & { default: T; }) | { [platform in import("react-native").PlatformOSType]: T; }): T; (specifics: { [platform in import("react-native").PlatformOSType]?: T; }): T | undefined; }; isDev: typeof isDev; isIos: () => boolean; isAndroid: () => boolean; isWeb: () => boolean; isNative: () => boolean; web: typeof web; ios: typeof ios; android: typeof android; native: typeof native; constants: import("react-native").PlatformConstants & { forceTouchAvailable: boolean; interfaceIdiom: string; osVersion: string; systemName: string; isMacCatalyst?: boolean | undefined; }; OS: "ios"; isPad: boolean; isTV: boolean; isVision: boolean; isMacCatalyst?: boolean | undefined; Version: string; isTesting: boolean; isLinux: () => boolean; isDarwin: () => boolean; isWin32: () => boolean; isNode: () => boolean; isElectron: () => boolean; isServerSide: () => boolean; isClientSide: () => boolean; isMobileBrowser: () => boolean; isAndroidMobileBrowser: () => boolean; isReactNativeWebview: () => boolean; } | { isNextJs: () => boolean; isIphoneX: typeof isIphoneX; iphoneX: typeof iphoneX; getStatusBarHeight: typeof getStatusBarHeight; getBottomSpace: typeof getBottomSpace; isTouchDevice: () => boolean; canUseNativeDriver: () => boolean; select: { (specifics: ({ [platform in import("react-native").PlatformOSType]?: T; } & { default: T; }) | { [platform in import("react-native").PlatformOSType]: T; }): T; (specifics: { [platform in import("react-native").PlatformOSType]?: T; }): T | undefined; }; isDev: typeof isDev; isIos: () => boolean; isAndroid: () => boolean; isWeb: () => boolean; isNative: () => boolean; web: typeof web; ios: typeof ios; android: typeof android; native: typeof native; constants: import("react-native").PlatformConstants & { Version: number; Release: string; Serial: string; Fingerprint: string; Model: string; Brand: string; Manufacturer: string; ServerHost?: string | undefined; uiMode: "car" | "desk" | "normal" | "tv" | "watch" | "unknown"; }; OS: "android"; Version: number; isTV: boolean; isTesting: boolean; isLinux: () => boolean; isDarwin: () => boolean; isWin32: () => boolean; isNode: () => boolean; isElectron: () => boolean; isServerSide: () => boolean; isClientSide: () => boolean; isMobileBrowser: () => boolean; isAndroidMobileBrowser: () => boolean; isReactNativeWebview: () => boolean; } | { isNextJs: () => boolean; isIphoneX: typeof isIphoneX; iphoneX: typeof iphoneX; getStatusBarHeight: typeof getStatusBarHeight; getBottomSpace: typeof getBottomSpace; isTouchDevice: () => boolean; canUseNativeDriver: () => boolean; select: { (specifics: ({ [platform in import("react-native").PlatformOSType]?: T; } & { default: T; }) | { [platform in import("react-native").PlatformOSType]: T; }): T; (specifics: { [platform in import("react-native").PlatformOSType]?: T; }): T | undefined; }; isDev: typeof isDev; isIos: () => boolean; isAndroid: () => boolean; isWeb: () => boolean; isNative: () => boolean; web: typeof web; ios: typeof ios; android: typeof android; native: typeof native; OS: "windows"; Version: number; constants: import("react-native").PlatformConstants & { osVersion: number; }; isTV: boolean; isTesting: boolean; isLinux: () => boolean; isDarwin: () => boolean; isWin32: () => boolean; isNode: () => boolean; isElectron: () => boolean; isServerSide: () => boolean; isClientSide: () => boolean; isMobileBrowser: () => boolean; isAndroidMobileBrowser: () => boolean; isReactNativeWebview: () => boolean; } | { isNextJs: () => boolean; isIphoneX: typeof isIphoneX; iphoneX: typeof iphoneX; getStatusBarHeight: typeof getStatusBarHeight; getBottomSpace: typeof getBottomSpace; isTouchDevice: () => boolean; canUseNativeDriver: () => boolean; select: { (specifics: ({ [platform in import("react-native").PlatformOSType]?: T; } & { default: T; }) | { [platform in import("react-native").PlatformOSType]: T; }): T; (specifics: { [platform in import("react-native").PlatformOSType]?: T; }): T | undefined; }; isDev: typeof isDev; isIos: () => boolean; isAndroid: () => boolean; isWeb: () => boolean; isNative: () => boolean; web: typeof web; ios: typeof ios; android: typeof android; native: typeof native; OS: "macos"; Version: string; constants: import("react-native").PlatformConstants & { osVersion: string; }; isTV: boolean; isTesting: boolean; isLinux: () => boolean; isDarwin: () => boolean; isWin32: () => boolean; isNode: () => boolean; isElectron: () => boolean; isServerSide: () => boolean; isClientSide: () => boolean; isMobileBrowser: () => boolean; isAndroidMobileBrowser: () => boolean; isReactNativeWebview: () => boolean; } | { isNextJs: () => boolean; isIphoneX: typeof isIphoneX; iphoneX: typeof iphoneX; getStatusBarHeight: typeof getStatusBarHeight; getBottomSpace: typeof getBottomSpace; isTouchDevice: () => boolean; canUseNativeDriver: () => boolean; select: { (specifics: ({ [platform in import("react-native").PlatformOSType]?: T; } & { default: T; }) | { [platform in import("react-native").PlatformOSType]: T; }): T; (specifics: { [platform in import("react-native").PlatformOSType]?: T; }): T | undefined; }; isDev: typeof isDev; isIos: () => boolean; isAndroid: () => boolean; isWeb: () => boolean; isNative: () => boolean; web: typeof web; ios: typeof ios; android: typeof android; native: typeof native; OS: "web"; isTV: boolean; isTesting: boolean; Version: number | string; constants: import("react-native").PlatformConstants; isLinux: () => boolean; isDarwin: () => boolean; isWin32: () => boolean; isNode: () => boolean; isElectron: () => boolean; isServerSide: () => boolean; isClientSide: () => boolean; isMobileBrowser: () => boolean; isAndroidMobileBrowser: () => boolean; isReactNativeWebview: () => boolean; }; export default _default;