> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Module: runtime/adapters/readLeases

> Reference for the bijection/runtime/adapters/readLeases entry point.

## Variables

### snapshotLeases

• `Const` **snapshotLeases**: `Object`

#### Type declaration

| Name | Type |
| :- | :- |
| `acquire` | (`key`: `string`, `handle`: `string`) => `Promise`\<`string`> |
| `use` | (`lease`: `string`) => `Promise`\<`null`> |
| `release` | (`lease`: `string`) => `Promise`\<`null`> |
| `capture` | (`lease`: `string`, `purpose`: `string`, `value`: [`Value`](https://docs.bijection.com/api/modules/values#value), `source_id`: `string` \| `null`) => `Promise`\<`string`> |
| `consume` | (`purpose`: `string`, `token`: `string`) => `Promise`\<\{ `kind`: `"value"` ; `value`: [`Value`](https://docs.bijection.com/api/modules/values#value) ; `work?`: \{ `record`: `string` ; `keyPrefix`: `string` ; `grantExpiresAtMs`: `number`  }  } \| \{ `kind`: `"expired"`  }> |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.