<br />

Interface for chunking long text into smaller segments.

**Signature:**

```typescript
export declare interface TextChunker 
```

## Methods

| Method | Modifiers | Description |
|---|---|---|
| [chunk(text)](https://developers.google.com/edge/api/mediapipe/js/tasks-retrieval.textchunker.md.txt#textchunkerchunk) |   | Chunks the input text into a list of strings. |

## TextChunker.chunk()

Chunks the input text into a list of strings.

**Signature:**

```typescript
chunk(text: string): string[] | Promise<string[]>;
```

### Parameters

| Parameter | Type | Description |
|---|---|---|
| text | string |   |

**Returns:**

string\[\] \| Promise\<string\[\]\>