## escapeToken() function
Escape token part of a JSON Pointer string

'~' needs to be encoded as '~0' and '/' needs to be encoded as '~1' when these characters appear in a reference token.

This is the exact inverse of `unescapeToken()`, so the reverse replacements must take place in reverse order.

**Signature:**

```typescript
export declare function escapeToken(token: string): string;
```  
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| token | string | The token to escape. |

**Returns:**
string

The escaped token.
