sandra-rad-nuxt-smart-app-banner
Version:
Smart banner for nuxt 3
20 lines (19 loc) • 850 B
TypeScript
import type { Parser } from "bowser";
import { SmartAppBannerPlatform, type 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 {};