1 | /**
|
2 | * @hidden
|
3 | * @alpha
|
4 | */
|
5 | import { BooleanParam, Expression, IntParam, Param, ParamOptions, SecretParam, StringParam, ListParam } from "./types";
|
6 | export { BUCKET_PICKER, TextInput, SelectInput, SelectOptions, MultiSelectInput, select, multiSelect, } from "./types";
|
7 | export { ParamOptions, Expression };
|
8 | type SecretOrExpr = Param<any> | SecretParam;
|
9 | export declare const declaredParams: SecretOrExpr[];
|
10 | /**
|
11 | * A built-in parameter that resolves to the default RTDB database URL associated
|
12 | * with the project, without prompting the deployer. Empty string if none exists.
|
13 | */
|
14 | export declare const databaseURL: Param<string>;
|
15 | /**
|
16 | * A built-in parameter that resolves to the Cloud project ID associated with
|
17 | * the project, without prompting the deployer.
|
18 | */
|
19 | export declare const projectID: Param<string>;
|
20 | /**
|
21 | * A built-in parameter that resolves to the Cloud project ID, without prompting
|
22 | * the deployer.
|
23 | */
|
24 | export declare const gcloudProject: Param<string>;
|
25 | /**
|
26 | * A builtin parameter that resolves to the Cloud storage bucket associated
|
27 | * with the function, without prompting the deployer. Empty string if not
|
28 | * defined.
|
29 | */
|
30 | export declare const storageBucket: Param<string>;
|
31 | /**
|
32 | * Declares a secret param, that will persist values only in Cloud Secret Manager.
|
33 | * Secrets are stored internally as bytestrings. Use `ParamOptions.as` to provide type
|
34 | * hinting during parameter resolution.
|
35 | *
|
36 | * @param name The name of the environment variable to use to load the parameter.
|
37 | * @returns A parameter with a `string` return type for `.value`.
|
38 | */
|
39 | export declare function defineSecret(name: string): SecretParam;
|
40 | /**
|
41 | * Declare a string parameter.
|
42 | *
|
43 | * @param name The name of the environment variable to use to load the parameter.
|
44 | * @param options Configuration options for the parameter.
|
45 | * @returns A parameter with a `string` return type for `.value`.
|
46 | */
|
47 | export declare function defineString(name: string, options?: ParamOptions<string>): StringParam;
|
48 | /**
|
49 | * Declare a boolean parameter.
|
50 | *
|
51 | * @param name The name of the environment variable to use to load the parameter.
|
52 | * @param options Configuration options for the parameter.
|
53 | * @returns A parameter with a `boolean` return type for `.value`.
|
54 | */
|
55 | export declare function defineBoolean(name: string, options?: ParamOptions<boolean>): BooleanParam;
|
56 | /**
|
57 | * Declare an integer parameter.
|
58 | *
|
59 | * @param name The name of the environment variable to use to load the parameter.
|
60 | * @param options Configuration options for the parameter.
|
61 | * @returns A parameter with a `number` return type for `.value`.
|
62 | */
|
63 | export declare function defineInt(name: string, options?: ParamOptions<number>): IntParam;
|
64 | /**
|
65 | * Declare a list parameter.
|
66 | *
|
67 | * @param name The name of the environment variable to use to load the parameter.
|
68 | * @param options Configuration options for the parameter.
|
69 | * @returns A parameter with a `string[]` return type for `.value`.
|
70 | */
|
71 | export declare function defineList(name: string, options?: ParamOptions<string[]>): ListParam;
|