## Functions

| Function | Description |
|---|---|
| [defineBoolean(name, options)](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsdefineboolean) | Declare a boolean parameter. |
| [defineInt(name, options)](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsdefineint) | Declare an integer parameter. |
| [defineJsonSecret(name, options)](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsdefinejsonsecret) | Declares a secret parameter that retrieves a structured JSON object in Cloud Secret Manager. This is useful for managing groups of related configuration values, such as all settings for a third-party API, as a single unit.The secret value must be a valid JSON string. At runtime, the value will be automatically parsed and returned as a JavaScript object. If the value is not set or is not valid JSON, an error will be thrown. |
| [defineList(name, options)](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsdefinelist) | Declare a list parameter. |
| [defineSecret(name, options)](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsdefinesecret) | Declares a secret param, that will persist values only in Cloud Secret Manager. Secrets are stored internally as bytestrings. Use `ParamOptions.as` to provide type hinting during parameter resolution. |
| [defineString(name, options)](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsdefinestring) | Declare a string parameter. |
| [expr(strings, values)](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsexpr) | Creates an Expression representing a string, which can interpolate other Expressions into it using template literal syntax. |
| [multiSelect(options)](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsmultiselect) | Create a multi-select input from a series of values. |
| [multiSelect(options)](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsmultiselect) | Create a multi-select input from map of labels to values. |
| [select(options)](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsselect) | Create a select input from a series of values. |
| [select(optionsWithLabels)](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsselect) | Create a select input from a map of labels to values. |

## Classes

| Class | Description |
|---|---|
| [BooleanParam](https://firebase.google.com/docs/reference/functions/firebase-functions.params.booleanparam#paramsbooleanparam_class) | A parametrized value of Boolean type that will be read from .env files if present, or prompted for by the CLI if missing. |
| [Expression](https://firebase.google.com/docs/reference/functions/firebase-functions.params.expression#paramsexpression_class) |   |
| [IntParam](https://firebase.google.com/docs/reference/functions/firebase-functions.params.intparam#paramsintparam_class) | A parametrized value of Integer type that will be read from .env files if present, or prompted for by the CLI if missing. |
| [JsonSecretParam](https://firebase.google.com/docs/reference/functions/firebase-functions.params.jsonsecretparam#paramsjsonsecretparam_class) | A parametrized object whose value is stored as a JSON string in Cloud Secret Manager. This is useful for managing groups of related configuration values, such as all settings for a third-party API, as a single unit. Supply instances of JsonSecretParam to the secrets array while defining a Function to make their values accessible during execution of that Function. |
| [ListParam](https://firebase.google.com/docs/reference/functions/firebase-functions.params.listparam#paramslistparam_class) | A parametrized value of String\[\] type that will be read from .env files if present, or prompted for by the CLI if missing. |
| [Param](https://firebase.google.com/docs/reference/functions/firebase-functions.params.param#paramsparam_class) | Represents a parametrized value that will be read from .env files if present, or prompted for by the CLI if missing. Instantiate these with the defineX methods exported by the firebase-functions/params namespace. |
| [SecretParam](https://firebase.google.com/docs/reference/functions/firebase-functions.params.secretparam#paramssecretparam_class) | A parametrized string whose value is stored in Cloud Secret Manager instead of the local filesystem. Supply instances of SecretParams to the secrets array while defining a Function to make their values accessible during execution of that Function. |
| [StringParam](https://firebase.google.com/docs/reference/functions/firebase-functions.params.stringparam#paramsstringparam_class) | A parametrized value of String type that will be read from .env files if present, or prompted for by the CLI if missing. |

## Interfaces

| Interface | Description |
|---|---|
| [MultiSelectInput](https://firebase.google.com/docs/reference/functions/firebase-functions.params.multiselectinput#paramsmultiselectinput_interface) | Specifies that a parameter's value should be determined by having the user select a subset from a list of pre-canned options interactively at deploy time. Will result in errors if used on parameters of type other than `string[]`. |
| [SecretParamOptions](https://firebase.google.com/docs/reference/functions/firebase-functions.params.secretparamoptions#paramssecretparamoptions_interface) | Configuration options which can be used to customize the behavior of a secret parameter. |
| [SelectInput](https://firebase.google.com/docs/reference/functions/firebase-functions.params.selectinput#paramsselectinput_interface) | Specifies that a parameter's value should be determined by having the user select from a list of pre-canned options interactively at deploy time. |
| [SelectOptions](https://firebase.google.com/docs/reference/functions/firebase-functions.params.selectoptions#paramsselectoptions_interface) | One of the options provided to a `SelectInput`, containing a value and optionally a human-readable label to display in the selection interface. |
| [TextInput](https://firebase.google.com/docs/reference/functions/firebase-functions.params.textinput#paramstextinput_interface) | Specifies that a parameter's value should be determined by prompting the user to type it in interactively at deploy time. Input that does not match the provided validationRegex, if present, will be retried. |

## Variables

| Variable | Description |
|---|---|
| [BUCKET_PICKER](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsbucket_picker) | Autogenerate a list of buckets in a project that a user can select from. |
| [databaseURL](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsdatabaseurl) | A built-in parameter that resolves to the default RTDB database URL associated with the project, without prompting the deployer. Empty string if none exists. |
| [declaredParams](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsdeclaredparams) | Shared list of declared parameters backed by globalThis across module contexts. |
| [gcloudProject](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsgcloudproject) | A built-in parameter that resolves to the Cloud project ID, without prompting the deployer. |
| [projectID](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsprojectid) | A built-in parameter that resolves to the Cloud project ID associated with the project, without prompting the deployer. |
| [storageBucket](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsstoragebucket) | A builtin parameter that resolves to the Cloud storage bucket associated with the function, without prompting the deployer. Empty string if not defined. |

## Type Aliases

| Type Alias | Description |
|---|---|
| [ParamOptions](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsparamoptions) | Configuration options which can be used to customize the prompting behavior of a parameter. |

## params.defineBoolean()

Declare a boolean parameter.

**Signature:**

    export declare function defineBoolean(name: string, options?: ParamOptions<boolean>): BooleanParam;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| name | string | The name of the environment variable to use to load the parameter. |
| options | [ParamOptions](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsparamoptions)\<boolean\> | Configuration options for the parameter. |

**Returns:**

[BooleanParam](https://firebase.google.com/docs/reference/functions/firebase-functions.params.booleanparam#paramsbooleanparam_class)

A parameter with a `boolean` return type for `.value`.

## params.defineInt()

Declare an integer parameter.

**Signature:**

    export declare function defineInt(name: string, options?: ParamOptions<number>): IntParam;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| name | string | The name of the environment variable to use to load the parameter. |
| options | [ParamOptions](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsparamoptions)\<number\> | Configuration options for the parameter. |

**Returns:**

[IntParam](https://firebase.google.com/docs/reference/functions/firebase-functions.params.intparam#paramsintparam_class)

A parameter with a `number` return type for `.value`.

## params.defineJsonSecret()

Declares a secret parameter that retrieves a structured JSON object in Cloud Secret Manager. This is useful for managing groups of related configuration values, such as all settings for a third-party API, as a single unit.

The secret value must be a valid JSON string. At runtime, the value will be automatically parsed and returned as a JavaScript object. If the value is not set or is not valid JSON, an error will be thrown.

**Signature:**

    export declare function defineJsonSecret<T = any>(name: string, options?: SecretParamOptions): JsonSecretParam<T>;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| name | string | The name of the environment variable to use to load the parameter. |
| options | [SecretParamOptions](https://firebase.google.com/docs/reference/functions/firebase-functions.params.secretparamoptions#paramssecretparamoptions_interface) |   |

**Returns:**

[JsonSecretParam](https://firebase.google.com/docs/reference/functions/firebase-functions.params.jsonsecretparam#paramsjsonsecretparam_class)\<T\>

A parameter whose `.value()` method returns the parsed JSON object. \`\`\`

## params.defineList()

Declare a list parameter.

**Signature:**

    export declare function defineList(name: string, options?: ParamOptions<string[]>): ListParam;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| name | string | The name of the environment variable to use to load the parameter. |
| options | [ParamOptions](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsparamoptions)\<string\[\]\> | Configuration options for the parameter. |

**Returns:**

[ListParam](https://firebase.google.com/docs/reference/functions/firebase-functions.params.listparam#paramslistparam_class)

A parameter with a `string[]` return type for `.value`.

## params.defineSecret()

Declares a secret param, that will persist values only in Cloud Secret Manager. Secrets are stored internally as bytestrings. Use `ParamOptions.as` to provide type hinting during parameter resolution.

**Signature:**

    export declare function defineSecret(name: string, options?: SecretParamOptions): SecretParam;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| name | string | The name of the environment variable to use to load the parameter. |
| options | [SecretParamOptions](https://firebase.google.com/docs/reference/functions/firebase-functions.params.secretparamoptions#paramssecretparamoptions_interface) |   |

**Returns:**

[SecretParam](https://firebase.google.com/docs/reference/functions/firebase-functions.params.secretparam#paramssecretparam_class)

A parameter with a `string` return type for `.value`.

## params.defineString()

Declare a string parameter.

**Signature:**

    export declare function defineString(name: string, options?: ParamOptions<string>): StringParam;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| name | string | The name of the environment variable to use to load the parameter. |
| options | [ParamOptions](https://firebase.google.com/docs/reference/functions/firebase-functions.params#paramsparamoptions)\<string\> | Configuration options for the parameter. |

**Returns:**

[StringParam](https://firebase.google.com/docs/reference/functions/firebase-functions.params.stringparam#paramsstringparam_class)

A parameter with a `string` return type for `.value`.

## params.expr()

Creates an Expression representing a string, which can interpolate other Expressions into it using template literal syntax.

**Signature:**

    export declare function expr(strings: TemplateStringsArray, ...values: (string | Expression<string>)[]): Expression<string>;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| strings | TemplateStringsArray |   |
| values | (string \| [Expression](https://firebase.google.com/docs/reference/functions/firebase-functions.params.expression#paramsexpression_class)\<string\>)\[\] |   |

**Returns:**

[Expression](https://firebase.google.com/docs/reference/functions/firebase-functions.params.expression#paramsexpression_class)\<string\>

### Example

    const topicParam = defineString('TOPIC');
    const topicExpr = expr`projects/my-project/topics/${topicParam}`;

## params.multiSelect()

Create a multi-select input from a series of values.

**Signature:**

    export declare function multiSelect(options: string[]): MultiSelectInput;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| options | string\[\] |   |

**Returns:**

[MultiSelectInput](https://firebase.google.com/docs/reference/functions/firebase-functions.params.multiselectinput#paramsmultiselectinput_interface)

## params.multiSelect()

Create a multi-select input from map of labels to values.

**Signature:**

    export declare function multiSelect(options: Record<string, string>): MultiSelectInput;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| options | Record\<string, string\> |   |

**Returns:**

[MultiSelectInput](https://firebase.google.com/docs/reference/functions/firebase-functions.params.multiselectinput#paramsmultiselectinput_interface)

## params.select()

Create a select input from a series of values.

**Signature:**

    export declare function select<T>(options: T[]): SelectInput<T>;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| options | T\[\] |   |

**Returns:**

[SelectInput](https://firebase.google.com/docs/reference/functions/firebase-functions.params.selectinput#paramsselectinput_interface)\<T\>

## params.select()

Create a select input from a map of labels to values.

**Signature:**

    export declare function select<T>(optionsWithLabels: Record<string, T>): SelectInput<T>;

### Parameters

| Parameter | Type | Description |
|---|---|---|
| optionsWithLabels | Record\<string, T\> |   |

**Returns:**

[SelectInput](https://firebase.google.com/docs/reference/functions/firebase-functions.params.selectinput#paramsselectinput_interface)\<T\>

## params.BUCKET_PICKER

Autogenerate a list of buckets in a project that a user can select from.

**Signature:**

    BUCKET_PICKER: ResourceInput

## params.databaseURL

A built-in parameter that resolves to the default RTDB database URL associated with the project, without prompting the deployer. Empty string if none exists.

**Signature:**

    databaseURL: Param<string>

## params.declaredParams

Shared list of declared parameters backed by globalThis across module contexts.

**Signature:**

    declaredParams: SecretOrExpr[]

## params.gcloudProject

A built-in parameter that resolves to the Cloud project ID, without prompting the deployer.

**Signature:**

    gcloudProject: Param<string>

## params.projectID

A built-in parameter that resolves to the Cloud project ID associated with the project, without prompting the deployer.

**Signature:**

    projectID: Param<string>

## params.storageBucket

A builtin parameter that resolves to the Cloud storage bucket associated with the function, without prompting the deployer. Empty string if not defined.

**Signature:**

    storageBucket: Param<string>

## params.ParamOptions

Configuration options which can be used to customize the prompting behavior of a parameter.

**Signature:**

    export type ParamOptions<T extends string | number | boolean | string[]> = Omit<ParamSpec<T>, "name" | "type">;