function · Browser and Node

# exportBundle

`@toip-tools/mesh-transport` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mesh-transport/src/bundle.ts#L23)

Import:

```ts
import { exportBundle } from "@toip-tools/mesh-transport";
```

## Declaration

Signature:

```ts
exportBundle(items: BundleItem[], opts?: {
    sealTo?: {
        vid: string;
        encryptionKey: Uint8Array;
    };
    nowMs?: number;
}): Promise<Uint8Array>;
```

### Parameters

**`items` (required)**

`BundleItem[]`

**`opts` (optional)**

`{ sealTo?: { vid: string; encryptionKey: Uint8Array; }; nowMs?: number; }`

Default: `{}`

**Fields of `opts`**

- **`sealTo` (optional)**: `{ vid: string; encryptionKey: Uint8Array; } | undefined`
- **`nowMs` (optional)**: `number | undefined`

### Returns

`Promise<Uint8Array<ArrayBufferLike>>`

[Usage guide](https://toip.tools/toolkit/mesh-transport/#usage) · [Error handling](https://toip.tools/toolkit/mesh-transport/#errors) · [All exports](https://toip.tools/toolkit/mesh-transport/api/)

---

This is the Markdown version of https://toip.tools/toolkit/mesh-transport/api/exportBundle/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
