<br />

Resolves the files required for the MediaPipe Task APIs. The returned filesets require that the Wasm files are published without renaming. If this is not possible, you can invoke the MediaPipe Tasks APIs using a manually created `WasmFileset`.

**Signature:**

```typescript
export declare class FilesetResolver 
```

## Methods

| Method | Modifiers | Description |
|---|---|---|
| [forAudioTasks(basePath, useModule)](https://developers.google.com/edge/api/mediapipe/js/tasks-audio.filesetresolver.md.txt#filesetresolverforaudiotasks) | `static` | Creates a fileset for the MediaPipe Audio tasks. |
| [forDecisionTasks(basePath, useModule)](https://developers.google.com/edge/api/mediapipe/js/tasks-audio.filesetresolver.md.txt#filesetresolverfordecisiontasks) | `static` | Creates a fileset for the MediaPipe Decision tasks. |
| [forGenAiTasks(basePath, useModule)](https://developers.google.com/edge/api/mediapipe/js/tasks-audio.filesetresolver.md.txt#filesetresolverforgenaitasks) | `static` | Creates a fileset for the MediaPipe GenAI tasks. |
| [forRetrievalTasks(basePath, useModule)](https://developers.google.com/edge/api/mediapipe/js/tasks-audio.filesetresolver.md.txt#filesetresolverforretrievaltasks) | `static` | Creates a fileset for the MediaPipe Retrieval tasks. |
| [forTextTasks(basePath, useModule)](https://developers.google.com/edge/api/mediapipe/js/tasks-audio.filesetresolver.md.txt#filesetresolverfortexttasks) | `static` | Creates a fileset for the MediaPipe Text tasks. |
| [forLiteRtLmTextTasks(basePath, useModule)](https://developers.google.com/edge/api/mediapipe/js/tasks-audio.filesetresolver.md.txt#filesetresolverforlitertlmtexttasks) | `static` | Creates a fileset for the MediaPipe LiteRT LM Text tasks. |
| [forVisionTasks(basePath, useModule)](https://developers.google.com/edge/api/mediapipe/js/tasks-audio.filesetresolver.md.txt#filesetresolverforvisiontasks) | `static` | Creates a fileset for the MediaPipe Vision tasks. |

## FilesetResolver.forAudioTasks()

Creates a fileset for the MediaPipe Audio tasks.

**Signature:**

```typescript
static forAudioTasks(basePath?: string, useModule?: boolean): Promise<WasmFileset>;
```

### Parameters

| Parameter | Type | Description |
|---|---|---|
| basePath | string | An optional base path to specify the directory the Wasm files should be loaded from. If not specified, the Wasm files are loaded from the host's root directory. |
| useModule | boolean | Whether to use ES6 Modules for the Wasm files. |

**Returns:**

Promise\<WasmFileset\>

## FilesetResolver.forDecisionTasks()

Creates a fileset for the MediaPipe Decision tasks.

**Signature:**

```typescript
static forDecisionTasks(basePath?: string, useModule?: boolean): Promise<WasmFileset>;
```

### Parameters

| Parameter | Type | Description |
|---|---|---|
| basePath | string | An optional base path to specify the directory the Wasm files should be loaded from. If not specified, the Wasm files are loaded from the host's root directory. |
| useModule | boolean | Whether to use ES6 Modules for the Wasm files. |

**Returns:**

Promise\<WasmFileset\>

## FilesetResolver.forGenAiTasks()

Creates a fileset for the MediaPipe GenAI tasks.

**Signature:**

```typescript
static forGenAiTasks(basePath?: string, useModule?: boolean): Promise<WasmFileset>;
```

### Parameters

| Parameter | Type | Description |
|---|---|---|
| basePath | string | An optional base path to specify the directory the Wasm files should be loaded from. If not specified, the Wasm files are loaded from the host's root directory. |
| useModule | boolean | Whether to use ES6 Modules for the Wasm files. |

**Returns:**

Promise\<WasmFileset\>

## FilesetResolver.forRetrievalTasks()

Creates a fileset for the MediaPipe Retrieval tasks.

**Signature:**

```typescript
static forRetrievalTasks(basePath?: string, useModule?: boolean): Promise<WasmFileset>;
```

### Parameters

| Parameter | Type | Description |
|---|---|---|
| basePath | string | An optional base path to specify the directory the Wasm files should be loaded from. If not specified, the Wasm files are loaded from the host's root directory. |
| useModule | boolean | Whether to use ES6 Modules for the Wasm files. |

**Returns:**

Promise\<WasmFileset\>

## FilesetResolver.forTextTasks()

Creates a fileset for the MediaPipe Text tasks.

**Signature:**

```typescript
static forTextTasks(basePath?: string, useModule?: boolean): Promise<WasmFileset>;
```

### Parameters

| Parameter | Type | Description |
|---|---|---|
| basePath | string | An optional base path to specify the directory the Wasm files should be loaded from. If not specified, the Wasm files are loaded from the host's root directory. |
| useModule | boolean | Whether to use ES6 Modules for the Wasm files. |

**Returns:**

Promise\<WasmFileset\>

## FilesetResolver.forLiteRtLmTextTasks()

Creates a fileset for the MediaPipe LiteRT LM Text tasks.

**Signature:**

```typescript
static forLiteRtLmTextTasks(basePath?: string, useModule?: boolean): Promise<WasmFileset>;
```

### Parameters

| Parameter | Type | Description |
|---|---|---|
| basePath | string | An optional base path to specify the directory the Wasm files should be loaded from. If not specified, the Wasm files are loaded from the host's root directory. |
| useModule | boolean | Whether to use ES6 Modules for the Wasm files. |

**Returns:**

Promise\<WasmFileset\>

## FilesetResolver.forVisionTasks()

Creates a fileset for the MediaPipe Vision tasks.

**Signature:**

```typescript
static forVisionTasks(basePath?: string, useModule?: boolean): Promise<WasmFileset>;
```

### Parameters

| Parameter | Type | Description |
|---|---|---|
| basePath | string | An optional base path to specify the directory the Wasm files should be loaded from. If not specified, the Wasm files are loaded from the host's root directory. |
| useModule | boolean | Whether to use ES6 Modules for the Wasm files. |

**Returns:**

Promise\<WasmFileset\>