1 | import { ProjectTarget } from '@expo/config';
|
2 | declare type ProjectStatus = 'running' | 'ill' | 'exited';
|
3 | export 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 | };
|
14 | export declare type Settings = ProjectSettings;
|
15 | declare 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 | };
|
26 | export declare type DeviceInfo = {
|
27 | installationId: string;
|
28 | lastUsed: number;
|
29 | };
|
30 | export declare type DevicesInfo = {
|
31 | devices: DeviceInfo[];
|
32 | };
|
33 | export declare function readAsync(projectRoot: string): Promise<ProjectSettings>;
|
34 | export declare function setAsync(projectRoot: string, json: Partial<ProjectSettings>): Promise<ProjectSettings>;
|
35 | export declare function readPackagerInfoAsync(projectRoot: string): Promise<PackagerInfo>;
|
36 | export declare function getCurrentStatusAsync(projectRoot: string): Promise<ProjectStatus>;
|
37 | export declare function setPackagerInfoAsync(projectRoot: string, json: Partial<PackagerInfo>): Promise<PackagerInfo>;
|
38 | export declare function getDevicesInfoAsync(projectRoot: string): Promise<DevicesInfo>;
|
39 | export declare function readDevicesInfoAsync(projectRoot: string): Promise<DevicesInfo>;
|
40 | export declare function setDevicesInfoAsync(projectRoot: string, json: DevicesInfo): Promise<DevicesInfo>;
|
41 | export declare function saveDevicesAsync(projectRoot: string, deviceIds: string | string[]): Promise<void>;
|
42 | export declare function dotExpoProjectDirectory(projectRoot: string): string;
|
43 | export declare function dotExpoProjectDirectoryExists(projectRoot: string): boolean;
|
44 | export {};
|