nuxt-smart-app-banner
Version:
Smart banner for nuxt 3
20 lines (19 loc) • 859 B
TypeScript
import { Parser } from "bowser";
import { SmartAppBannerPlatform, SmartBannerOptions } 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: any, osName: string) => SmartAppBannerPlatform | null;
export declare const isMobileSafariPlatform: (computedTheme: any, bowser: Parser.Parser) => boolean;
export {};