UNPKG

1.41 kBTypeScriptView Raw
1export declare const DEFAULT_CONFIG_FILENAME = "fab.config.json5";
2export declare const DEFAULT_MIME_TYPE = "text/html; charset=utf-8";
3export declare const NO_RESPONSE_STATUS_CODE = 444;
4export declare const IMMUTABLE_HEADERS: {
5 'cache-control': string;
6};
7export declare const NON_IMMUTABLE_HEADERS: {
8 'cache-control': string;
9};
10export declare const REGEXP_VALUE_PATTERN: RegExp;
11export declare const ENV_VAR_SYNTAX: RegExp;
12declare const CF_WORKERS_CONFIG: {
13 account_id: string;
14 zone_id: string;
15 route: string;
16 api_token: string;
17 workers_dev: boolean;
18 script_name: string;
19};
20declare const AWS_LAMBDA_CONFIG: {
21 access_key: string;
22 secret_key: string;
23 region: string;
24 cf_distribution_id: string;
25 lambda_arn: string;
26};
27declare const AWS_S3_CONFIG: {
28 access_key: string;
29 secret_key: string;
30 region: string;
31 bucket_name: string;
32};
33export declare namespace ConfigTypes {
34 type CFWorkers = typeof CF_WORKERS_CONFIG;
35 type AwsLambda = typeof AWS_LAMBDA_CONFIG;
36 type AwsS3 = typeof AWS_S3_CONFIG;
37 type Union = CFWorkers | AwsLambda | AwsS3;
38}
39declare type HostingProvider = {
40 package_name: string;
41 capabilities: {
42 server: boolean;
43 assets: boolean;
44 };
45 config: ConfigTypes.Union;
46 extension: string;
47};
48export declare const HOSTING_PROVIDERS: {
49 [key: string]: HostingProvider;
50};
51export {};