/** * Repository for webtonative javascript sdk. Build your android/ios app from https://webtonative.com. * This is in beta phase. * @example npm install webtonative * import webtonative from "webtonative"; * const wtn = webtonative(); */ import { isNativeApp, platform } from "./utills"; import { StatusBarOptions, DownloadBlobFileOptions, CustomFileDownloadOptions, BaseResponse } from "./types"; export declare const isAndroidApp: boolean; export declare const isIosApp: boolean; export declare const isAndroidORIosApp: boolean; /** * This function hides splash screen * @example wtn.hideSplashScreen() */ export declare const hideSplashScreen: () => void; export declare const statusBar: (options: StatusBarOptions) => void; export declare const downloadFile: (downloadUrl: string) => void; export declare const downloadBlobFile: ({ fileName, downloadUrl, shareFileAfterDownload, openFileAfterDownload, }: DownloadBlobFileOptions) => void; export declare const customFileDownload: ({ downloadUrl, fileName, isBlob, mimeType, cookies, userAgent, openFileAfterDownload, }: CustomFileDownloadOptions) => void; export declare const deviceInfo: () => Promise; export declare const showInAppReview: () => void; interface GPSEnabledOptions { callback?: (response: BaseResponse) => void; } export declare const isDeviceGPSEnabled: (options?: GPSEnabledOptions) => void; interface ShareLinkOptions { url: string; } export declare const shareLink: ({ url }: ShareLinkOptions) => void; export declare const openUrlInBrowser: (url?: string) => void; export declare const enablePullToRefresh: (status: boolean) => void; export declare const clearAppCache: (reload: boolean) => void; export declare const shareFile: (fileUrl?: string | null, fileExtension?: string | null, text?: string | null) => void; export declare const closeApp: () => void; interface DateTimePickerOptions { callback?: (response: BaseResponse) => void; showDate?: boolean; showTime?: boolean; } export declare const showDateTimePicker: (options: DateTimePickerOptions) => void; interface PrintFunctionOptions { type?: string; url?: string; } export declare const printFunction: (options: PrintFunctionOptions) => void; interface NFCSupportedOptions { callback?: (response: BaseResponse) => void; } export declare const nfcSupported: (options: NFCSupportedOptions) => void; interface LoadOfferCardOptions { data?: any; [key: string]: any; } export declare const loadOfferCard: (options: LoadOfferCardOptions) => void; interface AddToSiriOptions { data?: any; [key: string]: any; } export declare const addToSiri: (options: AddToSiriOptions) => void; export declare const appFirstLoad: () => Promise; export declare const forceUpdateCookies: () => void; interface OpenAppSettingForPermissionOptions { callback?: (response: BaseResponse) => void; values?: any; } export declare const openAppSettingForPermission: (options: OpenAppSettingForPermissionOptions) => void; interface ShowPermissionOptions { callback?: (response: BaseResponse) => void; permission?: string; openAppSetting?: boolean; alertDialogStyle?: any; } export declare const showPermission: (options: ShowPermissionOptions) => void; interface UpdateAppIconOptions { active?: boolean; iconName?: string | null; } export declare const updateAppIcon: (options: UpdateAppIconOptions) => void; interface DisableScreenshotOptions { ssKey?: boolean; } export declare const disableScreenshot: (options: DisableScreenshotOptions) => void; interface CustomBackHandlingOptions { enable?: boolean; } export declare const customBackHandling: (options: CustomBackHandlingOptions) => void; interface GetSafeAreaOptions { callback?: (response: BaseResponse) => void; } export declare const getSafeArea: (options: GetSafeAreaOptions) => void; interface GetAddOnStatusOptions { callback?: (response: BaseResponse) => void; addOnName?: string; } export declare const getAddOnStatus: (options: GetAddOnStatusOptions) => void; interface CheckPermissionOptions { callback?: (response: BaseResponse) => void; permissionName?: string[]; } export declare const checkPermission: (options: CheckPermissionOptions) => void; interface SetOrientationOptions { orientation?: string; forceOrientation?: boolean; } export declare const setOrientation: (options: SetOrientationOptions) => void; interface NativeComponentsOptions { components?: string[]; } export declare const hideNativeComponents: (options?: NativeComponentsOptions) => void; export declare const showNativeComponents: (options?: NativeComponentsOptions) => void; interface RegisterNotificationOptions { callback?: (response: BaseResponse) => void; } export declare const registerNotification: (options?: RegisterNotificationOptions) => void; interface IOptions { color?: string; } export declare const setNavigationBarColor: (options?: IOptions) => void; interface IPinchToZoom { state?: boolean; } export declare const pinchToZoom: (options?: IPinchToZoom) => void; export { platform, isNativeApp }; declare const _default: { isAndroidApp: boolean; isIosApp: boolean; hideSplashScreen: () => void; statusBar: (options: StatusBarOptions) => void; deviceInfo: () => Promise; showInAppReview: () => void; shareLink: ({ url }: ShareLinkOptions) => void; platform: import("./types").Platform; isNativeApp: boolean; isDeviceGPSEnabled: (options?: GPSEnabledOptions) => void; openUrlInBrowser: (url?: string) => void; enablePullToRefresh: (status: boolean) => void; shareFile: (fileUrl?: string, fileExtension?: string, text?: string) => void; clearAppCache: (reload: boolean) => void; closeApp: () => void; showDateTimePicker: (options: DateTimePickerOptions) => void; downloadBlobFile: ({ fileName, downloadUrl, shareFileAfterDownload, openFileAfterDownload, }: DownloadBlobFileOptions) => void; customFileDownload: ({ downloadUrl, fileName, isBlob, mimeType, cookies, userAgent, openFileAfterDownload, }: CustomFileDownloadOptions) => void; printFunction: (options: PrintFunctionOptions) => void; loadOfferCard: (options: LoadOfferCardOptions) => void; appFirstLoad: () => Promise; addToSiri: (options: AddToSiriOptions) => void; showPermission: (options: ShowPermissionOptions) => void; forceUpdateCookies: () => void; updateAppIcon: (options: UpdateAppIconOptions) => void; disableScreenshot: (options: DisableScreenshotOptions) => void; getSafeArea: (options: GetSafeAreaOptions) => void; getAddOnStatus: (options: GetAddOnStatusOptions) => void; setOrientation: (options: SetOrientationOptions) => void; checkPermission: (options: CheckPermissionOptions) => void; openAppSettingForPermission: (options: OpenAppSettingForPermissionOptions) => void; customBackHandling: (options: CustomBackHandlingOptions) => void; hideNativeComponents: (options?: NativeComponentsOptions) => void; showNativeComponents: (options?: NativeComponentsOptions) => void; registerNotification: (options?: RegisterNotificationOptions) => void; setNavigationBarColor: (options?: IOptions) => void; pinchToZoom: (options?: IPinchToZoom) => void; }; export default _default;