1 | import { PWAConfig } from 'expo-pwa';
|
2 | import { Configuration as WebpackConfiguration } from 'webpack';
|
3 | import { ProxyConfigArray, ProxyConfigMap, Configuration as WebpackDevServerConfiguration } from 'webpack-dev-server';
|
4 | export interface DevConfiguration extends WebpackConfiguration {
|
5 | devServer?: WebpackDevServerConfiguration;
|
6 | }
|
7 | export declare type AnyConfiguration = DevConfiguration | WebpackConfiguration;
|
8 | declare type AnyObject = {
|
9 | [key: string]: any;
|
10 | };
|
11 | export declare type InputEnvironment = {
|
12 | projectRoot?: string;
|
13 | platform?: 'ios' | 'android' | 'web' | 'electron';
|
14 | info?: boolean;
|
15 | https?: boolean;
|
16 | production?: boolean;
|
17 | development?: boolean;
|
18 | config?: AnyObject;
|
19 | locations?: FilePaths;
|
20 | mode?: Mode;
|
21 | removeUnusedImportExports?: boolean;
|
22 | pwa?: boolean;
|
23 | offline?: boolean;
|
24 | babel?: {
|
25 | dangerouslyAddModulePathsToTranspile: string[];
|
26 | };
|
27 | };
|
28 | export declare type Environment = {
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
34 | https: boolean;
|
35 | |
36 |
|
37 |
|
38 |
|
39 |
|
40 | config: PWAConfig;
|
41 | |
42 |
|
43 |
|
44 | locations: FilePaths;
|
45 | |
46 |
|
47 |
|
48 | projectRoot: string;
|
49 | |
50 |
|
51 |
|
52 |
|
53 |
|
54 | offline?: boolean;
|
55 | |
56 |
|
57 |
|
58 | mode: Mode;
|
59 | |
60 |
|
61 |
|
62 | platform: ExpoPlatform;
|
63 | |
64 |
|
65 |
|
66 |
|
67 |
|
68 | removeUnusedImportExports?: boolean;
|
69 | |
70 |
|
71 |
|
72 |
|
73 |
|
74 | pwa?: boolean;
|
75 | |
76 |
|
77 |
|
78 | babel?: ExpoBabelOptions;
|
79 | };
|
80 |
|
81 |
|
82 |
|
83 | export declare type ExpoPlatform = 'ios' | 'android' | 'web' | 'electron';
|
84 |
|
85 |
|
86 |
|
87 | export declare type ExpoBabelOptions = {
|
88 | |
89 |
|
90 |
|
91 | dangerouslyAddModulePathsToTranspile: string[];
|
92 | };
|
93 | declare type PathResolver = (...input: string[]) => string;
|
94 | export interface FilePathsFolder {
|
95 | get: PathResolver;
|
96 | folder: string;
|
97 | indexHtml: string;
|
98 | manifest: string;
|
99 | serveJson: string;
|
100 | favicon: string;
|
101 | serviceWorker: string;
|
102 | registerServiceWorker: string;
|
103 | }
|
104 | export interface FilePaths {
|
105 | absolute: PathResolver;
|
106 | includeModule: PathResolver;
|
107 | template: FilePathsFolder;
|
108 | production: FilePathsFolder;
|
109 | packageJson: string;
|
110 | root: string;
|
111 | appMain: string | null;
|
112 | modules: string;
|
113 | servedPath: string;
|
114 | }
|
115 | export declare type Mode = 'production' | 'development' | 'none';
|
116 | export interface Arguments {
|
117 | allowedHost?: string;
|
118 | proxy?: ProxyConfigMap | ProxyConfigArray;
|
119 | [key: string]: any;
|
120 | }
|
121 | export {};
|