UNPKG

2 kBTypeScriptView Raw
1import { ProjectTarget } from '@expo/config';
2declare type ProjectStatus = 'running' | 'ill' | 'exited';
3export declare type ProjectSettings = {
4 scheme: string | null;
5 hostType: 'localhost' | 'lan' | 'tunnel';
6 lanType: 'ip' | 'hostname';
7 dev: boolean;
8 devClient: boolean;
9 minify: boolean;
10 urlRandomness: string | null;
11 https: boolean;
12 strict?: boolean;
13};
14export declare type Settings = ProjectSettings;
15declare type PackagerInfo = {
16 expoServerPort?: number | null;
17 packagerPort?: number | null;
18 packagerPid?: number | null;
19 expoServerNgrokUrl?: string | null;
20 packagerNgrokUrl?: string | null;
21 ngrokPid?: number | null;
22 devToolsPort?: number | null;
23 webpackServerPort?: number | null;
24 target?: ProjectTarget;
25};
26export declare type DeviceInfo = {
27 installationId: string;
28 lastUsed: number;
29};
30export declare type DevicesInfo = {
31 devices: DeviceInfo[];
32};
33export declare function readAsync(projectRoot: string): Promise<ProjectSettings>;
34export declare function setAsync(projectRoot: string, json: Partial<ProjectSettings>): Promise<ProjectSettings>;
35export declare function readPackagerInfoAsync(projectRoot: string): Promise<PackagerInfo>;
36export declare function getCurrentStatusAsync(projectRoot: string): Promise<ProjectStatus>;
37export declare function setPackagerInfoAsync(projectRoot: string, json: Partial<PackagerInfo>): Promise<PackagerInfo>;
38export declare function getDevicesInfoAsync(projectRoot: string): Promise<DevicesInfo>;
39export declare function readDevicesInfoAsync(projectRoot: string): Promise<DevicesInfo>;
40export declare function setDevicesInfoAsync(projectRoot: string, json: DevicesInfo): Promise<DevicesInfo>;
41export declare function saveDevicesAsync(projectRoot: string, deviceIds: string | string[]): Promise<void>;
42export declare function dotExpoProjectDirectory(projectRoot: string): string;
43export declare function dotExpoProjectDirectoryExists(projectRoot: string): boolean;
44export {};