1 | export declare type Target = 'client' | 'server' | 'service-worker';
|
2 | export declare type Mode = 'production' | 'development' | 'staging' | 'test';
|
3 | export interface Options {
|
4 | target?: Target;
|
5 | mode?: Mode;
|
6 | }
|
7 | export default class Env {
|
8 | target: Target;
|
9 | mode: Mode;
|
10 | constructor({ target, mode }?: Options);
|
11 | readonly hasProductionAssets: boolean;
|
12 | readonly isClient: boolean;
|
13 | readonly isServer: boolean;
|
14 | readonly isBrowser: boolean;
|
15 | readonly isServiceWorker: boolean;
|
16 | readonly isProduction: boolean;
|
17 | readonly isDevelopment: boolean;
|
18 | readonly isNotDevelopment: boolean;
|
19 | readonly isStaging: boolean;
|
20 | readonly isTest: boolean;
|
21 | readonly isCircleCI: boolean;
|
22 | readonly isCI: boolean;
|
23 | readonly isDevelopmentClient: boolean;
|
24 | readonly isProductionClient: void;
|
25 | readonly isTestClient: boolean;
|
26 | readonly isDevelopmentServer: boolean;
|
27 | readonly isProductionServer: void;
|
28 | readonly isShopifyBuild: boolean;
|
29 | readonly isTestServer: boolean;
|
30 | toString(): string;
|
31 | match<Client, Server, Worker>(cases: {
|
32 | client: Client;
|
33 | server: Server;
|
34 | serviceWorker: Worker;
|
35 | }): Client | Server | Worker;
|
36 | }
|