UNPKG

@amplitude/ampli

Version:

Amplitude CLI

24 lines (23 loc) 1.32 kB
import { RuntimeProperties } from '../ampli'; import { RuntimeId, SDK, UnsupportedRuntimeId } from '../types'; export declare type AmpliRuntimeLanguage = RuntimeProperties['runtimeLanguage']; export declare type AmpliRuntimePlatform = RuntimeProperties['runtimePlatform']; export declare type AmpliRuntimeVersion = RuntimeProperties['runtimeVersion']; export declare const RuntimeSDKs: Record<RuntimeId, SDK>; export declare const UnsupportedRuntimeDocUrls: Record<UnsupportedRuntimeId, string>; export declare const UnsupportedRuntimeBaseDocUrl = "https://www.docs.developers.amplitude.com/data/sdks/"; export declare function getRuntimeLanguageAndVersion(languageId: string): [string, string]; export declare function getAmpliRuntimeProperties(runtime: { code: string | undefined; platform: string | undefined; language: string | undefined; sdk: string | undefined; }): RuntimeProperties; export declare const isAmpliRuntime: (runtimeId: string) => boolean; export declare function isPlatformOnlyRuntime(runtimeId: string): boolean; export declare function isSupportedRuntime(runtimeId: string): boolean; export declare function isUnknownRuntime(runtimeId: string): boolean; export declare function getRuntimeDisplayString(runtime: { platformName: string; languageName: string; }): string;