vue-smart-app-banner
Version:
Smart banner for vue.js 2-3
21 lines (20 loc) • 914 B
TypeScript
import type { Parser } from 'bowser';
import type { SmartBannerOptions } from './types';
import { SmartAppBannerPlatform } from './types';
interface PlatformData {
platform: SmartAppBannerPlatform;
iconRels: string[];
getStoreLink: (bannerConfig: SmartBannerOptions) => string;
getAppId: (bannerConfig: SmartBannerOptions) => string;
getIcon: (bannerConfig: SmartBannerOptions) => string;
}
declare enum PlatformOs {
'Android' = "android",
'iOS' = "ios"
}
type PlatformDataKey = SmartAppBannerPlatform | PlatformOs;
type PlatformsData = Record<PlatformDataKey, PlatformData>;
export declare const platformsData: PlatformsData;
export declare const identifyPlatform: (bannerConfig: SmartBannerOptions, osName: string) => SmartAppBannerPlatform | null;
export declare const isMobileSafariPlatform: (computedTheme: string, bowser: Parser.Parser) => boolean;
export {};