UNPKG

2.09 kBTypeScriptView Raw
1import { ExpoConfig } from '@expo/config';
2export declare type SDKVersion = {
3 androidExpoViewUrl?: string;
4 expoReactNativeTag: string;
5 exponentReactNativeTag?: string;
6 expokitNpmPackage?: string;
7 facebookReactNativeVersion: string;
8 facebookReactVersion?: string;
9 iosExpoViewUrl?: string;
10 iosExponentViewUrl?: string;
11 iosVersion?: string;
12 isDeprecated?: boolean;
13 packagesToInstallWhenEjecting?: {
14 [name: string]: string;
15 };
16 releaseNoteUrl?: string;
17 iosClientUrl?: string;
18 iosClientVersion?: string;
19 androidClientUrl?: string;
20 androidClientVersion?: string;
21 relatedPackages?: {
22 [name: string]: string;
23 };
24 beta?: boolean;
25};
26export declare type SDKVersions = {
27 [version: string]: SDKVersion;
28};
29declare type TurtleSDKVersions = {
30 android: string[];
31 ios: string[];
32};
33declare type TurtleSDKVersionsOld = {
34 android: string;
35 ios: string;
36};
37declare type Versions = {
38 androidUrl: string;
39 androidVersion: string;
40 iosUrl: string;
41 iosVersion: string;
42 sdkVersions: SDKVersions;
43 starterApps: unknown;
44 templates: unknown[];
45 templatesv2: unknown[];
46 turtleSdkVersions: TurtleSDKVersionsOld;
47};
48export declare function versionsAsync(options?: {
49 skipCache?: boolean;
50}): Promise<Versions>;
51export declare function sdkVersionsAsync(): Promise<SDKVersions>;
52export declare function releasedSdkVersionsAsync(): Promise<SDKVersions>;
53export declare function gteSdkVersion(expJson: Pick<ExpoConfig, 'sdkVersion'>, sdkVersion: string): boolean;
54export declare function lteSdkVersion(expJson: Pick<ExpoConfig, 'sdkVersion'>, sdkVersion: string): boolean;
55export declare function parseSdkVersionFromTag(tag: string): string;
56export declare function newestReleasedSdkVersionAsync(): Promise<{
57 version: string;
58 data: SDKVersion | null;
59}>;
60export declare function oldestSupportedMajorVersionAsync(): Promise<number>;
61export declare function canTurtleBuildSdkVersion(sdkVersion: string, platform: keyof TurtleSDKVersions): Promise<boolean>;
62export {};