---
title: Amount
description: "What a line item's cost can be: an estimate, or unpriced."
---

What a line item's cost can be: an estimate, or unpriced.

`kind` is the stable tag, and exactly one of `usd`/`unpriced` is non-null — so a reader
who checks either has handled both.

## Accessors

### kind

#### Get Signature

```ts
get kind(): string;
```

`"estimated-usd"` or `"unpriced"`.

##### Returns

`string`

***

### unpriced

#### Get Signature

```ts
get unpriced(): Unpriced | null;
```

The unpriced half, or `null` when the line was priced.

##### Returns

[`Unpriced`](/microvms-agentd/reference/typescript/classes/unpriced/) | `null`

***

### usd

#### Get Signature

```ts
get usd(): EstimatedUsd | null;
```

The estimate, or `null` when there is no published rate.

`null` rather than a zero — the one arithmetic this module refuses to enable.

##### Returns

[`EstimatedUsd`](/microvms-agentd/reference/typescript/classes/estimatedusd/) | `null`

## Methods

### toString()

```ts
toString(): string;
```

#### Returns

`string`

## Provenance

This page is generated from `bindings/microvms-js/index.d.ts` by TypeDoc 0.28.20 and typedoc-plugin-markdown 4.13.1, run from `site/scripts/gen-reference.mjs` on every `pnpm run sync`, so an edit made here is overwritten by the next run.

To change the page, change the doc comment in the binding's Rust source, then regenerate the declarations with `mise run dts`. `mise run dts:check` fails when the committed file no longer matches the source.